Another fix in gizmos update

This commit is contained in:
Enrico Turri 2018-07-19 16:06:46 +02:00
parent c40258d9b2
commit aaa592bab9

View file

@ -2128,7 +2128,7 @@ void GLCanvas3D::update_volumes_colors_by_extruder()
void GLCanvas3D::update_gizmos_data() void GLCanvas3D::update_gizmos_data()
{ {
if (!m_gizmos.is_running()) if (!m_gizmos.is_enabled())
return; return;
int id = _get_first_selected_object_id(); int id = _get_first_selected_object_id();
@ -3323,6 +3323,7 @@ void GLCanvas3D::on_mouse(wxMouseEvent& evt)
{ {
deselect_volumes(); deselect_volumes();
_on_select(-1); _on_select(-1);
update_gizmos_data();
} }
} }
else if (evt.LeftUp() && m_gizmos.is_dragging()) else if (evt.LeftUp() && m_gizmos.is_dragging())