This commit is contained in:
zimzaza4
2025-01-01 09:18:08 +08:00
parent da64cef8da
commit 693666c621

View File

@@ -374,6 +374,14 @@ function calculateVisibleBox() {
for (var face in obj.faces) { for (var face in obj.faces) {
if (obj.faces[face].texture !== null) { if (obj.faces[face].texture !== null) {
texture = Texture.all.findInArray('uuid', obj.faces[face].texture); texture = Texture.all.findInArray('uuid', obj.faces[face].texture);
if (texture == null || texture.name == undefined) {
continue
}
texture_name = texture.name.replace("_e.png", "");
texture = Texture.all.findInArray('name', texture_name)
break break
} }
} }