Skip to content

Commit

Permalink
TSL: Fix optional parameter in Fn() (#30293)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag authored Jan 9, 2025
1 parent 95a994c commit dc9f057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nodes/tsl/TSLCore.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ class ShaderCallNodeInternal extends Node {
} else {

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

result = nodeObject( outputNode );

Expand Down

0 comments on commit dc9f057

Please sign in to comment.