Explorar o código

Simplify assign statement in bone constructor

Gary Hsu %!s(int64=8) %!d(string=hai) anos
pai
achega
74a650a5c9
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);