Explorar el Código

WebGLRenderer: Fixed MorphTargets breakage.
When multiple morphTargets where in the same scene, this optimization resulted in a mix of morphTargets from different animations with different sizes.

Mr.doob hace 10 años
padre
commit
6853144627
Se han modificado 1 ficheros con 1 adiciones y 5 borrados
  1. 1 5
      src/renderers/WebGLRenderer.js

+ 1 - 5
src/renderers/WebGLRenderer.js

@@ -3143,11 +3143,7 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 				influence = influences[ i ];
 
-				if ( influence !== 0 ) {
-
-					activeInfluenceIndices.push( [ influence, i ] );
-
-				}
+				activeInfluenceIndices.push( [ influence, i ] );
 
 			}