1
0
Эх сурвалжийг харах

TSL: Fix instance buffer size in `instance()`. (#31608)

Co-authored-by: user <merowinger>
Adrian Hänsler 9 сар өмнө
parent
commit
eb7609c062

+ 3 - 1
src/nodes/accessors/InstanceNode.js

@@ -109,7 +109,9 @@ class InstanceNode extends Node {
 	 */
 	setup( builder ) {
 
-		const { count, instanceMatrix, instanceColor } = this;
+		const { instanceMatrix, instanceColor } = this;
+
+		const { count } = instanceMatrix;
 
 		let { instanceMatrixNode, instanceColorNode } = this;
 

粤ICP备19079148号