|
@@ -341,7 +341,7 @@ var BABYLON;
|
|
this._effect.setMatrix("viewProjection", scene.getTransformMatrix());
|
|
this._effect.setMatrix("viewProjection", scene.getTransformMatrix());
|
|
// Bones
|
|
// Bones
|
|
if (mesh && mesh.useBones && mesh.computeBonesUsingShaders) {
|
|
if (mesh && mesh.useBones && mesh.computeBonesUsingShaders) {
|
|
- this._effect.setMatrices("mBones", mesh.skeleton.getTransformMatrices());
|
|
|
|
|
|
+ this._effect.setMatrices("mBones", mesh.skeleton.getTransformMatrices(mesh));
|
|
}
|
|
}
|
|
this._effect.setFloat("tileSize", this.tileSize);
|
|
this._effect.setFloat("tileSize", this.tileSize);
|
|
if (scene.getCachedMaterial() !== this) {
|
|
if (scene.getCachedMaterial() !== this) {
|