Skip to content

Commit

Permalink
fix: potential outlines crash
Browse files Browse the repository at this point in the history
  • Loading branch information
drcmda committed Apr 3, 2024
1 parent 009857a commit 96f7732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Outlines.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export function Outlines({
oldGeometry.current = parent.geometry

// Remove old mesh
let mesh = group.children[0] as any
let mesh = group.children?.[0] as any
if (mesh) {
if (angle) mesh.geometry.dispose()
group.remove(mesh)
Expand Down

0 comments on commit 96f7732

Please sign in to comment.