mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-06 22:47:32 -06:00
Don't allow selection change in paint gizmo (#8776)
If object has modifier, in some paint gizmos such as seam and support paint, if you click the modifier, the gizmo will exit:  This PR fixes this issue so the gizmo won't accidentally exit.
This commit is contained in:
parent
5ed855aeef
commit
61a68fb497
1 changed files with 2 additions and 0 deletions
|
@ -1061,6 +1061,7 @@ void GLGizmoPainterBase::on_set_state()
|
|||
return;
|
||||
|
||||
if (m_state == On && m_old_state != On) { // the gizmo was just turned on
|
||||
m_parent.enable_picking(false);
|
||||
on_opening();
|
||||
|
||||
const Selection& selection = m_parent.get_selection();
|
||||
|
@ -1072,6 +1073,7 @@ void GLGizmoPainterBase::on_set_state()
|
|||
//camera.look_at(position, rotate_target, Vec3d::UnitZ());
|
||||
}
|
||||
if (m_state == Off && m_old_state != Off) { // the gizmo was just turned Off
|
||||
m_parent.enable_picking(true);
|
||||
// we are actually shutting down
|
||||
on_shutdown();
|
||||
m_old_mo_id = -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue