diff --git a/src/modifiers/EdgeSplitModifier.ts b/src/modifiers/EdgeSplitModifier.ts index c23b05cc..ae4229c8 100644 --- a/src/modifiers/EdgeSplitModifier.ts +++ b/src/modifiers/EdgeSplitModifier.ts @@ -164,7 +164,8 @@ class EdgeSplitModifier { } = {} for (let name of Object.keys(geometry.attributes)) { const oldAttribute = geometry.attributes[name] - const newArray = (oldAttribute.array as TypedArray).constructor( + // @ts-ignore + const newArray = new oldAttribute.array.constructor( (this.indexes.length + this.splitIndexes.length) * oldAttribute.itemSize, )