فهرست منبع

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

sunag 1 سال پیش
والد
کامیت
23e68107bc
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  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;
 
 		}