浏览代码

SkinnedMesh recalculated matrixWorld and bone inverses in constructor

Greg Tatum 10 年之前
父节点
当前提交
bf16c51941
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/objects/SkinnedMesh.js

+ 1 - 1
src/objects/SkinnedMesh.js

@@ -60,7 +60,7 @@ THREE.SkinnedMesh = function ( geometry, material, useVertexTexture ) {
 	this.normalizeSkinWeights();
 	this.normalizeSkinWeights();
 
 
 	this.updateMatrixWorld( true );
 	this.updateMatrixWorld( true );
-	this.bind( new THREE.Skeleton( bones, undefined, useVertexTexture ) );
+	this.bind( new THREE.Skeleton( bones, undefined, useVertexTexture ), this.matrixWorld );
 
 
 };
 };