Skip to content

Commit b4a0430

Browse files
author
Avaer Kazmer
committed
Reset model armatures
1 parent 929619a commit b4a0430

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vrarmik/Rig.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,12 @@ class Rig {
264264
this.flipZ = flipZ;
265265
this.flipY = flipY;
266266

267+
armature.position.set(0, 0, 0);
268+
armature.quaternion.set(0, 0, 0, 1);
269+
armature.scale.set(1, 1, 1);
270+
armature.updateMatrix();
271+
272+
267273
const preRotations = {};
268274
if (!flipZ) {
269275
preRotations.Left_arm = new Quaternion().setFromAxisAngle(new Vector3(0, 0, 1), Math.PI*0.25).inverse();

0 commit comments

Comments
 (0)