mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-02-23 16:31:20 +08:00
Fix #2201 can't export skinned glTF model with locator or null
This commit is contained in:
parent
3407447e35
commit
0d14a499b2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user