From a9e3bb59a04e283aa40142e31cb6983498e0125d Mon Sep 17 00:00:00 2001 From: "yifan.wu" Date: Sun, 7 Aug 2022 23:22:37 +0800 Subject: [PATCH] FIX: fix reset not work for movement in cut tool Signed-off-by: yifan.wu --- src/slic3r/GUI/Gizmos/GLGizmoAdvancedCut.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoAdvancedCut.cpp b/src/slic3r/GUI/Gizmos/GLGizmoAdvancedCut.cpp index 2cb39e300..1f5c46a7c 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoAdvancedCut.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoAdvancedCut.cpp @@ -154,11 +154,14 @@ void GLGizmoAdvancedCut::reset_cut_plane() m_cut_plane_points[3] = { min_x, max_y, 0 }; m_movement = 0.0; m_height = box.size()[2] / 2.0; - m_buffered_height = m_height; m_height_delta = 0; m_rotation.setZero(); //m_current_base_rotation.setZero(); m_rotate_cmds.clear(); + + m_buffered_movement = 0.0; + m_buffered_height = m_height; + m_buffered_rotation.setZero(); } void GLGizmoAdvancedCut::reset_all()