Explorar o código

Updating the js file

Raanan Weber %!s(int64=11) %!d(string=hai) anos
pai
achega
fac74fa4c0
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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