Browse Source

AssimpLoader: SkinnedMesh no longer calls normalizeSkinWeights() in constructor.

Mr.doob 6 năm trước cách đây
mục cha
commit
e5e96df8c5
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      examples/js/loaders/AssimpLoader.js

+ 3 - 1
examples/js/loaders/AssimpLoader.js

@@ -772,8 +772,10 @@ THREE.AssimpLoader.prototype = {
 				if ( this.mBones.length == 0 )
 					mesh = new THREE.Mesh( geometry, mat );
 
-				if ( this.mBones.length > 0 )
+				if ( this.mBones.length > 0 ) {
 					mesh = new THREE.SkinnedMesh( geometry, mat );
+					mesh.normalizeSkinWeights();
+				}
 
 				this.threeNode = mesh;
 				//mesh.matrixAutoUpdate = false;