From ee639a4710d88fe719031e7106d2346e18ebba44 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Thu, 14 May 2020 14:17:20 +0200 Subject: [PATCH] FDM supports gizmo: do not disable slope visualizer when it should stay on --- src/slic3r/GUI/Gizmos/GLGizmoFdmSupports.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoFdmSupports.cpp b/src/slic3r/GUI/Gizmos/GLGizmoFdmSupports.cpp index a75eed12c0..b85fe57f0c 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoFdmSupports.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoFdmSupports.cpp @@ -756,8 +756,11 @@ void GLGizmoFdmSupports::on_set_state() } if (m_state == Off && m_old_state != Off) { // the gizmo was just turned Off // we are actually shutting down - m_setting_angle = false; - m_parent.use_slope(false); + if (m_setting_angle) { + m_setting_angle = false; + m_parent.use_slope(false); + } + wxGetApp().plater()->leave_gizmos_stack(); { Plater::TakeSnapshot snapshot(wxGetApp().plater(), _(L("FDM gizmo turned off")));