Explorar o código

fixed bone.setYawPitchRoll (forgot to update bone._rotationMatrix)

Adam Bowman %!s(int64=8) %!d(string=hai) anos
pai
achega
33ddeca0d4
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/Bones/babylon.bone.ts

+ 2 - 0
src/Bones/babylon.bone.ts

@@ -273,6 +273,8 @@
 
             var parentScale = BABYLON.Tmp.Matrix[3];
             var parentScaleInv = BABYLON.Tmp.Matrix[4];
+
+            this._rotationMatrix.multiplyToRef(rmat, this._rotationMatrix);
             
             if (parent) {