Quellcode durchsuchen

TSL: Fix Math/Operators fail generate cache with same node (#28502)

sunag vor 1 Jahr
Ursprung
Commit
23e68107bc
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 3 1
      examples/jsm/nodes/core/Node.js

+ 3 - 1
examples/jsm/nodes/core/Node.js

@@ -199,9 +199,11 @@ class Node extends EventDispatcher {
 
 		const nodeProperties = builder.getNodeProperties( this );
 
+		let index = 0;
+
 		for ( const childNode of this.getChildren() ) {
 
-			nodeProperties[ '_node' + childNode.id ] = childNode;
+			nodeProperties[ 'node' + index ++ ] = childNode;
 
 		}