Browse Source

handle case when weights are zero

WestLangley 9 năm trước cách đây
mục cha
commit
578013ac20
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/objects/SkinnedMesh.js

+ 2 - 2
src/objects/SkinnedMesh.js

@@ -109,7 +109,7 @@ THREE.SkinnedMesh.prototype.normalizeSkinWeights = function () {
 
 			} else {
 
-				// do nothing
+				sw.set( 1, 0, 0, 0 ); // do something reasonable
 
 			}
 
@@ -136,7 +136,7 @@ THREE.SkinnedMesh.prototype.normalizeSkinWeights = function () {
 
 			} else {
 
-				// do nothing
+				vec.set( 1, 0, 0, 0 ); // do something reasonable
 
 			}