From 61a68fb497442215bdf3c6f4068036273e683fec Mon Sep 17 00:00:00 2001 From: Noisyfox Date: Sun, 13 Apr 2025 17:35:12 +0800 Subject: [PATCH] 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: ![paint-modifier](https://github.com/user-attachments/assets/5680a19f-5de7-485e-bf73-3d79b6a080a9) This PR fixes this issue so the gizmo won't accidentally exit. --- src/slic3r/GUI/Gizmos/GLGizmoPainterBase.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoPainterBase.cpp b/src/slic3r/GUI/Gizmos/GLGizmoPainterBase.cpp index 2dbf7778e0..bcf65df700 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoPainterBase.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoPainterBase.cpp @@ -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;