Follow-up of 1218103fd6 - Fixed gizmo missbehavior when closing a gizmo by resetting the selection clicking on the scene

This commit is contained in:
enricoturri1966 2023-01-30 14:00:02 +01:00
parent dac7b7e46a
commit a078627552

View file

@ -170,12 +170,12 @@ void GLGizmosManager::reset_all_states()
if (! m_enabled || m_serializing)
return;
EType current = get_current_type();
const EType current = get_current_type();
if (current != Undefined)
// close any open gizmo
open_gizmo(current);
else
activate_gizmo(Undefined);
activate_gizmo(Undefined);
m_hover = Undefined;
}