浏览代码

SkinnedMesh.bind calculates the skeleton inverses

Greg Tatum 10 年之前
父节点
当前提交
ca6d846cc3
共有 1 个文件被更改,包括 2 次插入0 次删除
  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 ) {
 
 		this.updateMatrixWorld( true );
+		
+		this.skeleton.calculateInverses();
 
 		bindMatrix = this.matrixWorld;