소스 검색

Nodes: remove redundant code (#28173)

Co-authored-by: aardgoose <[email protected]>
aardgoose 1 년 전
부모
커밋
d1078e756a
1개의 변경된 파일5개의 추가작업 그리고 8개의 파일을 삭제
  1. 5 8
      examples/jsm/nodes/core/NodeBuilder.js

+ 5 - 8
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 );
 
 		}