|
@@ -60,7 +60,7 @@ THREE.SkinnedMesh = function ( geometry, material, useVertexTexture ) {
|
|
|
this.normalizeSkinWeights();
|
|
|
|
|
|
this.updateMatrixWorld( true );
|
|
|
- this.bind( new THREE.Skeleton( bones, undefined, useVertexTexture ) );
|
|
|
+ this.bind( new THREE.Skeleton( bones, undefined, useVertexTexture ), this.matrixWorld );
|
|
|
|
|
|
};
|
|
|
|
|
@@ -75,6 +75,8 @@ THREE.SkinnedMesh.prototype.bind = function( skeleton, bindMatrix ) {
|
|
|
if ( bindMatrix === undefined ) {
|
|
|
|
|
|
this.updateMatrixWorld( true );
|
|
|
+
|
|
|
+ this.skeleton.calculateInverses();
|
|
|
|
|
|
bindMatrix = this.matrixWorld;
|
|
|
|