Skip to content

Commit dc9f057

Browse files
authored
TSL: Fix optional parameter in Fn() (#30293)
1 parent 95a994c commit dc9f057

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nodes/tsl/TSLCore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ class ShaderCallNodeInternal extends Node {
305305
} else {
306306

307307
const jsFunc = shaderNode.jsFunc;
308-
const outputNode = inputNodes !== null ? jsFunc( inputNodes, builder ) : jsFunc( builder );
308+
const outputNode = inputNodes !== null || jsFunc.length > 1 ? jsFunc( inputNodes || [], builder ) : jsFunc( builder );
309309

310310
result = nodeObject( outputNode );
311311

0 commit comments

Comments
 (0)