From 08e9a0acbc265c805c2722a2c099e48873c4d032 Mon Sep 17 00:00:00 2001 From: Josh Ellis Date: Sun, 21 Mar 2021 11:35:04 +0000 Subject: [PATCH] fix: edgesplitmodifier --- src/modifiers/EdgeSplitModifier.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/modifiers/EdgeSplitModifier.ts b/src/modifiers/EdgeSplitModifier.ts index ae4229c8..2fd9a35f 100644 --- a/src/modifiers/EdgeSplitModifier.ts +++ b/src/modifiers/EdgeSplitModifier.ts @@ -1,8 +1,6 @@ import { BufferAttribute, BufferGeometry, Vector3 } from 'three' import * as BufferGeometryUtils from '../utils/BufferGeometryUtils' -import { TypedArray } from '../types/shared' - interface EdgeSplitToGroupsResult { splitGroup: number[] currentGroup: number[] @@ -183,7 +181,7 @@ class EdgeSplitModifier { for (let attribute of Object.values(newAttributes)) { for (let j = 0; j < attribute.itemSize; j++) { // @ts-expect-error ArrayLike can't be mutated, but this works – https://github.com/three-types/three-ts-types/issues/35 - attribute.array[(indexes.length + i) * attribute.itemSize + j] = + attribute.array[(this.indexes.length + i) * attribute.itemSize + j] = attribute.array[index * attribute.itemSize + j] } }