Explorar o código

handle case when weights are zero

WestLangley %!s(int64=9) %!d(string=hai) anos
pai
achega
578013ac20
Modificáronse 1 ficheiros con 2 adicións e 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
 
 			}