Просмотр исходного кода

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

Co-authored-by: user <merowinger>
Adrian Hänsler 9 месяцев назад
Родитель
Сommit
eb7609c062
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      src/nodes/accessors/InstanceNode.js

+ 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号