mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-02-23 16:31:20 +08:00
bug : GLTF Export : element is not defined in this context
Got an error on export on this line, likely copied from the mesh.js code. In this context the equivalent element is the child, this removes the error.
This commit is contained in:
parent
d76a5ada9c
commit
e5b0e16238
@ -216,7 +216,7 @@ function buildSkinnedMesh(root_group, scale) {
|
||||
if (tex && tex.uuid) {
|
||||
materials.push(Project.materials[tex.uuid])
|
||||
} else {
|
||||
materials.push(Canvas.emptyMaterials[element.color])
|
||||
materials.push(Canvas.emptyMaterials[child.color])
|
||||
}
|
||||
if (face.vertices && face.vertices.length == 3) {
|
||||
face_vertex_counts.push(3);
|
||||
|
Loading…
Reference in New Issue
Block a user