Jelajahi Sumber

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

sunag 1 tahun lalu
induk
melakukan
23e68107bc
1 mengubah file dengan 3 tambahan dan 1 penghapusan
  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;
 
 		}