From d1078e756ad773dbc478230c465c1f9e5f6ee574 Mon Sep 17 00:00:00 2001 From: aardgoose Date: Sun, 21 Apr 2024 17:53:17 +0100 Subject: [PATCH] Nodes: remove redundant code (#28173) Co-authored-by: aardgoose --- examples/jsm/nodes/core/NodeBuilder.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/examples/jsm/nodes/core/NodeBuilder.js b/examples/jsm/nodes/core/NodeBuilder.js index 9e00059193036c..4ca4f02c0ee817 100644 --- a/examples/jsm/nodes/core/NodeBuilder.js +++ b/examples/jsm/nodes/core/NodeBuilder.js @@ -1086,21 +1086,18 @@ class NodeBuilder { } - build( convertMaterial = true ) { + build() { const { object, material } = this; - if ( convertMaterial ) { - if ( material !== null ) { + if ( material !== null ) { - NodeMaterial.fromMaterial( material ).build( this ); + NodeMaterial.fromMaterial( material ).build( this ); - } else { - - this.addFlow( 'compute', object ); + } else { - } + this.addFlow( 'compute', object ); }