Popov72 %!s(int64=5) %!d(string=hai) anos
pai
achega
346137dcf2
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/Bones/bone.ts

+ 2 - 2
src/Bones/bone.ts

@@ -242,9 +242,9 @@ export class Bone extends Node {
      */
     public returnToRest(): void {
         if (this._skeleton._numBonesWithLinkedTransformNode > 0) {
-            this.updateMatrix(this._restPose.clone(), false, false);
+            this.updateMatrix(this._restPose, false, false);
         } else {
-            this.updateMatrix(this._restPose.clone(), false, true);
+            this.updateMatrix(this._restPose, false, true);
         }
     }