Pārlūkot izejas kodu

SkinnedMesh recalculated matrixWorld and bone inverses in constructor

Greg Tatum 10 gadi atpakaļ
vecāks
revīzija
bf16c51941
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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 );
 
 };