Răsfoiți Sursa

TSL: Fix auto type conversion for layout parameters (#32059)

sunag 3 luni în urmă
părinte
comite
c2a5593b6b
1 a modificat fișierele cu 6 adăugiri și 1 ștergeri
  1. 6 1
      src/nodes/core/Node.js

+ 6 - 1
src/nodes/core/Node.js

@@ -749,7 +749,12 @@ class Node extends EventDispatcher {
 
 		} else if ( buildStage === 'generate' ) {
 
-			const isGenerateOnce = this.generate.length === 1;
+			// If generate has just one argument, it means the output type is not required.
+			// This means that the node does not handle output conversions internally,
+			// so the value is stored in a cache and the builder handles the conversion
+			// for all requested output types.
+
+			const isGenerateOnce = this.generate.length < 2;
 
 			if ( isGenerateOnce ) {
 

粤ICP备19079148号