Merge pull request #2258 from Oakfather/bug-gltf

GLTF Export Bug : element not defined
This commit is contained in:
JannisX11 2024-04-27 19:33:34 +02:00 committed by GitHub
commit 4583c224f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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