Fix #2201 can't export skinned glTF model with locator or null

This commit is contained in:
JannisX11 2024-03-27 23:46:55 +01:00
parent 3407447e35
commit 0d14a499b2

View File

@ -183,7 +183,7 @@ function buildSkinnedMesh(root_group, scale) {
if (group.export == false) return;
for (child of group.children) {
if (!child.mesh.geometry || child.export == false) continue;
if (!child.faces || child.export == false) continue;
let {geometry} = child.mesh;
let matrix = new THREE.Matrix4().copy(child.mesh.matrixWorld);
matrix.premultiply(root_counter_matrix);