From e65ebccb7f5b3f86c50361bd3bd6cc3ebc97d437 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Tue, 28 Mar 2023 13:39:53 +0200 Subject: [PATCH] OSX specific: EmbossGizmo: Fixed for SPE-1616 - Crash on MacOS when text in emboss gizmo is moved --- src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp index 8c4b4ff70..e7220481c 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp @@ -369,6 +369,10 @@ bool GLGizmoEmboss::on_mouse_for_translate(const wxMouseEvent &mouse_event) bool res = on_mouse_surface_drag(mouse_event, camera, m_surface_drag, m_parent, m_raycast_manager, up_limit); bool is_dragging = m_surface_drag.has_value(); + // Check if selection is still active + if (m_volume == nullptr) + return false; + // End with surface dragging? if (was_dragging && !is_dragging) { // Update surface by new position