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:
Oakfather 2024-04-03 10:15:24 -07:00
parent d76a5ada9c
commit e5b0e16238

View File

@ -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);