Explorar o código

Merge pull request #2684 from bghgary/bone-index-remap

Simplify assign statement in bone constructor
David Catuhe %!s(int64=8) %!d(string=hai) anos
pai
achega
1cb6cf09ba
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Bones/babylon.bone.ts

+ 1 - 1
src/Bones/babylon.bone.ts

@@ -47,7 +47,7 @@ module BABYLON {
             this._localMatrix = localMatrix ? localMatrix : Matrix.Identity();
             this._restPose = restPose ? restPose : this._localMatrix.clone();
             this._baseMatrix = baseMatrix ? baseMatrix : this._localMatrix.clone();
-            this._index = index === undefined ? undefined : index;
+            this._index = index;
 
             skeleton.bones.push(this);