Explorar o código

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

sunag hai 1 ano
pai
achega
23e68107bc
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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;
 
 		}