Skip to content

Commit c2a5593

Browse files
authored
TSL: Fix auto type conversion for layout parameters (#32059)
1 parent df5aa82 commit c2a5593

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/nodes/core/Node.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,12 @@ class Node extends EventDispatcher {
749749

750750
} else if ( buildStage === 'generate' ) {
751751

752-
const isGenerateOnce = this.generate.length === 1;
752+
// If generate has just one argument, it means the output type is not required.
753+
// This means that the node does not handle output conversions internally,
754+
// so the value is stored in a cache and the builder handles the conversion
755+
// for all requested output types.
756+
757+
const isGenerateOnce = this.generate.length < 2;
753758

754759
if ( isGenerateOnce ) {
755760

0 commit comments

Comments
 (0)