Explorar el Código

handle case when weights are zero

WestLangley hace 9 años
padre
commit
578013ac20
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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
 
 			}