Browse Source

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

Simplify assign statement in bone constructor
David Catuhe 8 năm trước cách đây
mục cha
commit
1cb6cf09ba
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);