From 97de72314699aba8e53e3d3fb32a949c79c49751 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Thu, 29 Jul 2021 09:03:20 +0200 Subject: [PATCH] Tech ENABLE_SINKING_CONTOURS -> Fix for showing sinking contours while dragging objects --- src/slic3r/GUI/GLCanvas3D.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index d76501e54..6a40a4e44 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -3135,9 +3135,6 @@ void GLCanvas3D::on_mouse(wxMouseEvent& evt) m_selection.start_dragging(); m_mouse.drag.start_position_3D = m_mouse.scene_position; m_sequential_print_clearance_first_displacement = true; -#if ENABLE_SINKING_CONTOURS - show_sinking_contours(); -#endif // ENABLE_SINKING_CONTOURS m_moving = true; } } @@ -3323,6 +3320,11 @@ void GLCanvas3D::on_mouse(wxMouseEvent& evt) else evt.Skip(); +#if ENABLE_SINKING_CONTOURS + if (m_moving) + show_sinking_contours(); +#endif // ENABLE_SINKING_CONTOURS + #ifdef __WXMSW__ if (on_enter_workaround) m_mouse.position = Vec2d(-1., -1.);