FIX:Press ESC directly to exit after entering the profile rendering
rendering is not normal,Code from PrusaSlicer,thanks for PrusaSlicer and enricoturri1966 commit a078627552f54497ed0518dc7bc349d243576d19 Author: enricoturri1966 <enricoturri@seznam.cz> Date: Mon Jan 30 14:00:02 2023 +0100 Follow-up of 1218103fd620b319c56fd08116f81b581c537188 - Fixed gizmo missbehavior when closing a gizmo by resetting the selection clicking on the scene Jira: STUDIO-5164 Change-Id: I261da9dba2a5ac37f3e263c175fbccd80d8045bd
This commit is contained in:
parent
f5637dac77
commit
b77217f33e
|
@ -338,6 +338,11 @@ void GLGizmosManager::reset_all_states()
|
|||
if (! m_enabled || m_serializing)
|
||||
return;
|
||||
|
||||
const EType current = get_current_type();
|
||||
if (current != Undefined)
|
||||
// close any open gizmo
|
||||
open_gizmo(current);
|
||||
|
||||
activate_gizmo(Undefined);
|
||||
m_hover = Undefined;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue