Przeglądaj źródła

Updating the js file

Raanan Weber 11 lat temu
rodzic
commit
fac74fa4c0
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      Babylon/Bones/babylon.skeleton.js

+ 4 - 1
Babylon/Bones/babylon.skeleton.js

@@ -10,6 +10,9 @@ var BABYLON;
             this.bones = [];
             this._scene = scene;
             scene.skeletons.push(this);
+            this.prepare():
+            //make sure it will recalculate the matrix next time prepare is called.
+            this._isDirty = true;
         }
         // Members
         Skeleton.prototype.getTransformMatrices = function () {
@@ -68,4 +71,4 @@ var BABYLON;
     })();
     BABYLON.Skeleton = Skeleton;
 })(BABYLON || (BABYLON = {}));
-//# sourceMappingURL=babylon.skeleton.js.map
+//# sourceMappingURL=babylon.skeleton.js.map