Browse Source

Clear unused morphInfluences in WebGLRenderer.renderBufferDirect to fix #9635 (#9640)

Takahiro 9 years ago
parent
commit
e0db1230f7
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/renderers/WebGLRenderer.js

+ 6 - 0
src/renderers/WebGLRenderer.js

@@ -760,6 +760,12 @@ function WebGLRenderer( parameters ) {
 
 
 			}
 			}
 
 
+			for ( var i = activeInfluences.length, il = morphInfluences.length; i < il; i ++ ) {
+
+				morphInfluences[ i ] = 0.0;
+
+			}
+
 			program.getUniforms().setValue(
 			program.getUniforms().setValue(
 					_gl, 'morphTargetInfluences', morphInfluences );
 					_gl, 'morphTargetInfluences', morphInfluences );