Explorar o código

SkinnedMesh recalculated matrixWorld and bone inverses in constructor

Greg Tatum %!s(int64=10) %!d(string=hai) anos
pai
achega
bf16c51941
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.updateMatrixWorld( true );
-	this.bind( new THREE.Skeleton( bones, undefined, useVertexTexture ) );
+	this.bind( new THREE.Skeleton( bones, undefined, useVertexTexture ), this.matrixWorld );
 
 };
 

粤ICP备19079148号