mirror of
https://github.com/azures04/crafatar.git
synced 2026-05-06 11:00:39 +02:00
rewrite renders
- renders are now fully isometric - used position -0.5 and size +1 at some places to fix #32 - does not support overlay yet - does not support left/right arms/legs - does not support slim renders yet - currently only renders full body, not head
This commit is contained in:
@@ -34,7 +34,7 @@ function handle_default(rid, scale, helm, body, img_status, userId, size, def, r
|
||||
}
|
||||
} else {
|
||||
// handle steve and alex
|
||||
fs.readFile(path.join(__dirname, "..", "public", "images", def + "_skin.png"), function (fs_err, buf) {
|
||||
fs.readFile(path.join(__dirname, "..", "public", "images", def + "_skin.png"), function(fs_err, buf) {
|
||||
// we render the default skins, but not custom images
|
||||
renders.draw_model(rid, buf, scale, helm, body, function(render_err, def_img) {
|
||||
callback({
|
||||
@@ -51,7 +51,7 @@ function handle_default(rid, scale, helm, body, img_status, userId, size, def, r
|
||||
|
||||
// GET render request
|
||||
module.exports = function(req, callback) {
|
||||
var raw_type = (req.url.path_list[1] || "");
|
||||
var raw_type = req.url.path_list[1] || "";
|
||||
var rid = req.id;
|
||||
var body = raw_type === "body";
|
||||
var userId = (req.url.path_list[2] || "").split(".")[0];
|
||||
|
||||
Reference in New Issue
Block a user