Skip to content

Commit a54aa82

Browse files
committed
if no scaling of skeleton, just return the skeleton
1 parent 0e42569 commit a54aa82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/processes/load-skeleton/StepLoadSkeleton.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export class StepLoadSkeleton extends EventTarget {
234234
// update all positions for bones and resets scale to 1
235235
private bake_scale_for_armature (armature: Object3D): Object3D {
236236
const scale = armature.scale.x // assumes uniform scale
237-
if (scale === 1) return;
237+
if (scale === 1) return armature.clone() // no changes. just return existing skeleton
238238

239239
const cloned_armature: Object3D = armature.clone()
240240
cloned_armature.traverse((obj) => {

0 commit comments

Comments
 (0)