소스 검색

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

Simplify assign statement in bone constructor
David Catuhe 8 년 전
부모
커밋
1cb6cf09ba
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);