SUNAG 9 年之前
父節點
當前提交
25eac0d3c2
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      examples/js/nodes/utils/SwitchNode.js

+ 3 - 3
examples/js/nodes/utils/SwitchNode.js

@@ -59,14 +59,14 @@ THREE.SwitchNode.prototype.generate = function( builder, output ) {
 
 		}
 
+		return builder.format( node, this.getType( builder ), output );
+
 	} else {
 
 		// join
 
-		node = builder.format( node, type, this.getType( builder ) )
+		return builder.format( node, type, output )
 
 	}
 
-	return builder.format( node, this.getType( builder ), output );
-
 };