Browse Source

Fix bug with scale with scaleChildren === true

David Catuhe 7 years ago
parent
commit
b1dfaf0624
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/Bones/babylon.bone.ts

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

@@ -520,6 +520,9 @@
             for (var child of this.children) {
                 var cm = child.getLocalMatrix();
                 cm.multiplyToRef(scaleMat, cm);
+                cm.m[12] *= x;
+                cm.m[13] *= y;
+                cm.m[14] *= z;
 
                 child._markAsDirtyAndDecompose();
             }