From 3eb09a98429655a9401d99da01e0672cc952c6dd Mon Sep 17 00:00:00 2001 From: Filip Sykala - NTB T15p Date: Tue, 25 Oct 2022 13:55:09 +0200 Subject: [PATCH] Prevent double instances of embossed text on canvas. Fix issue 73 (use surface) --- src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp index ff7b1fe36..6bc837e84 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp @@ -323,6 +323,8 @@ bool GLGizmoEmboss::on_mouse_for_translate(const wxMouseEvent &mouse_event) ModelObject *act_model_object = act_model_volume->get_object(); m_raycast_manager.actualize(act_model_object, &condition); m_dragging_mouse_offset = calc_mouse_to_center_text_offset(mouse_pos, *m_volume); + // Cancel job to prevent interuption of dragging (duplicit result) + if (m_update_job_cancel != nullptr) m_update_job_cancel->store(true); return false; }