Skip to content

Commit

Permalink
Nodes: remove redundant code (#28173)
Browse files Browse the repository at this point in the history
Co-authored-by: aardgoose <[email protected]>
  • Loading branch information
aardgoose and aardgoose authored Apr 21, 2024
1 parent e462f0e commit d1078e7
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions examples/jsm/nodes/core/NodeBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

}

Expand Down

0 comments on commit d1078e7

Please sign in to comment.