mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 20:03:47 +00: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:
@@ -1061,6 +1061,7 @@ void GLGizmoPainterBase::on_set_state()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (m_state == On && m_old_state != On) { // the gizmo was just turned on
|
if (m_state == On && m_old_state != On) { // the gizmo was just turned on
|
||||||
|
m_parent.enable_picking(false);
|
||||||
on_opening();
|
on_opening();
|
||||||
|
|
||||||
const Selection& selection = m_parent.get_selection();
|
const Selection& selection = m_parent.get_selection();
|
||||||
@@ -1072,6 +1073,7 @@ void GLGizmoPainterBase::on_set_state()
|
|||||||
//camera.look_at(position, rotate_target, Vec3d::UnitZ());
|
//camera.look_at(position, rotate_target, Vec3d::UnitZ());
|
||||||
}
|
}
|
||||||
if (m_state == Off && m_old_state != Off) { // the gizmo was just turned Off
|
if (m_state == Off && m_old_state != Off) { // the gizmo was just turned Off
|
||||||
|
m_parent.enable_picking(true);
|
||||||
// we are actually shutting down
|
// we are actually shutting down
|
||||||
on_shutdown();
|
on_shutdown();
|
||||||
m_old_mo_id = -1;
|
m_old_mo_id = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user