diff --git a/front/src/components/Promo/load_models.vue b/front/src/components/Promo/load_models.vue index 9e35da4..ef09db2 100644 --- a/front/src/components/Promo/load_models.vue +++ b/front/src/components/Promo/load_models.vue @@ -289,7 +289,7 @@ const clickEvent = (event: MouseEvent) => { raycaster.value.setFromCamera(new Vector2(pointer.x, pointer.y), camera.value); const intersects = raycaster.value.intersectObjects(seekAllByName(scene.value, '_clickable')); - const names = intersects.map(el => el.object.name ?? false).filter(Boolean) + const names = intersects.map(el => (el.object.parent ? el.object.parent.name : el.object.name) ?? false).filter(Boolean) if (names.length) { openSidebar(parseInt(names[0].replace('_clickable', ''))) }