Skip to content

Commit

Permalink
fix: edgeSplit modifier constructor call
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaellis committed Mar 20, 2021
1 parent a53f3e2 commit 83d75c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modifiers/EdgeSplitModifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand Down

0 comments on commit 83d75c8

Please sign in to comment.