diff --git a/examples/jsm/renderers/webgl-legacy/nodes/WebGLNodes.js b/examples/jsm/renderers/webgl-legacy/nodes/WebGLNodes.js index 9f5f3f842da875..dd9864194dd203 100644 --- a/examples/jsm/renderers/webgl-legacy/nodes/WebGLNodes.js +++ b/examples/jsm/renderers/webgl-legacy/nodes/WebGLNodes.js @@ -10,19 +10,7 @@ Material.prototype.onBuild = function ( object, parameters, renderer ) { const material = this; - if ( Array.isArray( material ) ) { - - for ( const m of material ) { - - if ( m.isNodeMaterial === true ) { - - builders.set( m, new WebGLNodeBuilder( object, renderer, parameters, m ).build() ); - - } - - } - - } else if ( material.isNodeMaterial === true ) { + if ( material.isNodeMaterial === true ) { builders.set( material, new WebGLNodeBuilder( object, renderer, parameters, material ).build() );