From bbea397aa662a01e8b42ea13159aa4109a615573 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Tue, 25 Apr 2023 10:02:50 +0200 Subject: [PATCH] SPE-1675 - Do not update layer editing when the mouse cursor is moved outside of the 3D scene while dragging --- src/slic3r/GUI/GLCanvas3D.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index bc0fdf65c..943f08a63 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -6244,10 +6244,10 @@ void GLCanvas3D::_perform_layer_editing_action(wxMouseEvent* evt) m_layers_editing.last_action = evt->ShiftDown() ? (evt->RightIsDown() ? LAYER_HEIGHT_EDIT_ACTION_SMOOTH : LAYER_HEIGHT_EDIT_ACTION_REDUCE) : (evt->RightIsDown() ? LAYER_HEIGHT_EDIT_ACTION_INCREASE : LAYER_HEIGHT_EDIT_ACTION_DECREASE); - } - m_layers_editing.adjust_layer_height_profile(); - _refresh_if_shown_on_screen(); + m_layers_editing.adjust_layer_height_profile(); + _refresh_if_shown_on_screen(); + } // Automatic action on mouse down with the same coordinate. _start_timer();