소스 검색

Merge pull request #1411 from garyhsums/fix/ExceptionInShaderMaterial

Fix exception in shader material
David Catuhe 8 년 전
부모
커밋
d9d1c655a7
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      src/Materials/babylon.shaderMaterial.ts

+ 1 - 3
src/Materials/babylon.shaderMaterial.ts

@@ -234,9 +234,7 @@
                 }
 
                 // Bones
-                if (mesh && mesh.useBones && mesh.computeBonesUsingShaders) {
-                    this._effect.setMatrices("mBones", mesh.skeleton.getTransformMatrices(mesh));
-                }
+                MaterialHelper.BindBonesParameters(mesh, this._effect);
 
                 var name: string;
                 // Texture