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.
2 parents 1d86e33 + f2efe04 commit d45d66dCopy full SHA for d45d66d
src/core/DataArray.ts
@@ -110,7 +110,11 @@ export default function DataArray(props: DataArrayProps) {
110
const typedArrayClass = TypedArrayLookup[TYPED_ARRAYS[type]];
111
array.setData(toTypedArray(values, typedArrayClass), numberOfComponents);
112
if (range) {
113
- array.setRange(range, numberOfComponents);
+ if (numberOfComponents === 1) {
114
+ array.setRange(range, 0);
115
+ } else {
116
+ array.setRange(range, numberOfComponents);
117
+ }
118
}
119
120
0 commit comments