Browse Source

handle case when weights are zero

WestLangley 9 years ago
parent
commit
578013ac20
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/objects/SkinnedMesh.js

+ 2 - 2
src/objects/SkinnedMesh.js

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