From 5dd00f792be4bc53225479551a6373500667be25 Mon Sep 17 00:00:00 2001 From: Filip Sykala - NTB T15p Date: Tue, 31 Jan 2023 09:08:53 +0100 Subject: [PATCH] Fix flickering of rotate gizmo --- src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp index d05cd1363..a73d8392f 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp @@ -649,10 +649,11 @@ void GLGizmoEmboss::on_render() { if (!selection.is_single_volume_or_modifier() && !selection.is_single_volume_instance()) return; bool is_surface_dragging = m_temp_transformation.has_value(); + bool is_parent_dragging = m_parent.is_mouse_dragging(); // Do NOT render rotation grabbers when dragging object bool is_rotate_by_grabbers = m_dragging; - if (!is_surface_dragging && - (!m_parent.is_dragging() || is_rotate_by_grabbers)) { + if (is_rotate_by_grabbers || + (!is_surface_dragging && !is_parent_dragging)) { glsafe(::glClear(GL_DEPTH_BUFFER_BIT)); m_rotate_gizmo.render(); }