Przeglądaj źródła

rm unused args from `.update()` (#25549)

ycw 2 lat temu
rodzic
commit
09cb168a0a

+ 1 - 1
src/renderers/WebGLRenderer.js

@@ -1711,7 +1711,7 @@ function WebGLRenderer( parameters = {} ) {
 
 		if ( morphAttributes.position !== undefined || morphAttributes.normal !== undefined || ( morphAttributes.color !== undefined && capabilities.isWebGL2 === true ) ) {
 
-			morphtargets.update( object, geometry, material, program );
+			morphtargets.update( object, geometry, program );
 
 		}
 

+ 1 - 1
src/renderers/webgl/WebGLMorphtargets.js

@@ -30,7 +30,7 @@ function WebGLMorphtargets( gl, capabilities, textures ) {
 
 	}
 
-	function update( object, geometry, material, program ) {
+	function update( object, geometry, program ) {
 
 		const objectInfluences = object.morphTargetInfluences;