Tech ENABLE_RAYCAST_PICKING - Refactoring to allow for easier update of raycasters transform

This commit is contained in:
enricoturri1966 2022-06-14 10:44:14 +02:00
parent 0a7dae6df6
commit 9ac5ab857b
6 changed files with 66 additions and 70 deletions

View file

@ -663,8 +663,8 @@ public:
void post_event(wxEvent &&event);
#if ENABLE_RAYCAST_PICKING
void add_raycaster_for_picking(SceneRaycaster::EType type, PickingId id, const MeshRaycaster& raycaster, const Transform3d& trafo) {
m_scene_raycaster.add_raycaster(type, id, raycaster, trafo);
std::shared_ptr<SceneRaycasterItem> add_raycaster_for_picking(SceneRaycaster::EType type, PickingId id, const MeshRaycaster& raycaster, const Transform3d& trafo) {
return m_scene_raycaster.add_raycaster(type, id, raycaster, trafo);
}
void remove_raycasters_for_picking(SceneRaycaster::EType type, PickingId id) {
m_scene_raycaster.remove_raycasters(type, id);