Browse Source

SkinnedMesh.bind calculates the skeleton inverses

Greg Tatum 10 years ago
parent
commit
ca6d846cc3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/objects/SkinnedMesh.js

+ 2 - 0
src/objects/SkinnedMesh.js

@@ -88,6 +88,8 @@ THREE.SkinnedMesh.prototype.bind = function( skeleton, bindMatrix ) {
 	if ( bindMatrix === undefined ) {
 	if ( bindMatrix === undefined ) {
 
 
 		this.updateMatrixWorld( true );
 		this.updateMatrixWorld( true );
+		
+		this.skeleton.calculateInverses();
 
 
 		bindMatrix = this.matrixWorld;
 		bindMatrix = this.matrixWorld;