Skip to content

Commit

Permalink
fix: edgesplitmodifier
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaellis committed Mar 21, 2021
1 parent 83d75c8 commit 08e9a0a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/modifiers/EdgeSplitModifier.ts
Original file line number Diff line number Diff line change
@@ -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[]
Expand Down Expand Up @@ -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]
}
}
Expand Down

0 comments on commit 08e9a0a

Please sign in to comment.