From 83d75c8f68d36a38671bc69c01a25db9833b7519 Mon Sep 17 00:00:00 2001 From: Josh Ellis Date: Sat, 20 Mar 2021 15:55:57 +0000 Subject: [PATCH] fix: edgeSplit modifier constructor call --- src/modifiers/EdgeSplitModifier.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, )