소스 검색

handle case when weights are zero

WestLangley 9 년 전
부모
커밋
578013ac20
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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
 
 			}