Separate GizmoManager on_move into gizmo itself

(cherry picked from commit prusa3d/PrusaSlicer@c751d6327d)
This commit is contained in:
Filip Sykala authored and Noisyfox committed 2023-11-04 11:41:10 +08:00
1 parent 005b83912d
commit 30af274d44
24 files changed
+559 -533

No files matched your search

+6
View File
@@ -5858,6 +5858,12 @@ Sidebar& GUI_App::sidebar()
return plater_->sidebar();
}
GizmoObjectManipulation *GUI_App::obj_manipul()
{
// If this method is called before plater_ has been initialized, return nullptr (to avoid a crash)
return (plater_ != nullptr) ? &plater_->get_view3D_canvas3D()->get_gizmos_manager().get_object_manipulation() : nullptr;
}
ObjectSettings* GUI_App::obj_settings()
{
return sidebar().obj_settings();