1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-27 10:35:51 +00:00

Update gizmos on/off state

This commit is contained in:
YuSanka
2018-12-03 13:29:07 +01:00
parent 435163fb73
commit 7395b923bd
4 changed files with 12 additions and 3 deletions
+6
View File
@@ -5248,6 +5248,12 @@ void GLCanvas3D::set_camera_zoom(float zoom)
_refresh_if_shown_on_screen();
}
void GLCanvas3D::update_gizmos_on_off_state()
{
set_as_dirty();
m_gizmos.update_on_off_state(get_selection());
}
bool GLCanvas3D::_is_shown_on_screen() const
{
return (m_canvas != nullptr) ? m_canvas->IsShownOnScreen() : false;