diff --git a/frontend/tools/Selection.vue b/frontend/tools/Selection.vue index 3232b8e..f6b21cd 100644 --- a/frontend/tools/Selection.vue +++ b/frontend/tools/Selection.vue @@ -88,7 +88,7 @@ let selectionListener = (event: MouseEvent) => { // Find all hit objects and select the wanted one based on the filter const hits = raycaster.intersectObject(scene, true); let hit = hits.find((hit: Intersection) => { - if (!hit.object || !(hit.object as any).isMesh) return false; + if (!hit.object) return false; const kind = hit.object.type let isFace = kind === 'Mesh' || kind === 'SkinnedMesh'; let isEdge = kind === 'Line' || kind === 'LineSegments';