diff --git a/src/nodes/tsl/TSLCore.js b/src/nodes/tsl/TSLCore.js index 612362d8eaca00..5757e930f4ae1e 100644 --- a/src/nodes/tsl/TSLCore.js +++ b/src/nodes/tsl/TSLCore.js @@ -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 );