We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9676b37 commit 7b1a0a7Copy full SHA for 7b1a0a7
build/three.js
@@ -11770,7 +11770,7 @@
11770
11771
this.array = array;
11772
this.itemSize = itemSize;
11773
- this.count = array.length / itemSize;
+ this.count = array !== undefined ? array.length / itemSize : 0;
11774
this.normalized = normalized === true;
11775
11776
this.dynamic = false;
@@ -38207,7 +38207,7 @@
38207
38208
38209
this.stride = stride;
38210
- this.count = array.length / stride;
+ this.count = array !== undefined ? array.length / stride : 0;
38211
38212
38213
this.updateRange = { offset: 0, count: - 1 };
0 commit comments