mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-18 07:32:01 -06:00
Tech ENABLE_RAYCAST_PICKING - Refactoring to allow for easier update of raycasters transform
(cherry picked from commit prusa3d/PrusaSlicer@9ac5ab857b)
This commit is contained in:
parent
29be4cc9a3
commit
ab090bf20d
6 changed files with 64 additions and 73 deletions
|
@ -729,8 +729,8 @@ public:
|
|||
bool init();
|
||||
void post_event(wxEvent &&event);
|
||||
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue