From e02c5e84cc85b1236e1d425b364c0958b14733c1 Mon Sep 17 00:00:00 2001 From: Filip Sykala - NTB T15p Date: Mon, 12 Dec 2022 17:46:43 +0100 Subject: [PATCH] Overwritte common transformation stored in gl_volume by emboss surface transformation instead of rewrite result in CallAfter --- src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp index f83334930..e26ab39dd 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp @@ -526,15 +526,11 @@ bool GLGizmoEmboss::on_mouse_for_translate(const wxMouseEvent &mouse_event) // with Mesa driver OR on Linux if (!m_temp_transformation.has_value()) return false; - // TODO: Disable applying of common transformation after draggig - // Call after is used for apply transformation after common dragging to rewrite it + // Override of common transformation after draggig by set transformation into gl_volume Transform3d volume_trmat = gl_volume->get_instance_transformation().get_matrix().inverse() * *m_temp_transformation; - wxGetApp().plater()->CallAfter([volume_trmat, mv = m_volume]() { - mv->set_transformation(volume_trmat); - }); - + gl_volume->set_volume_transformation(volume_trmat); m_parent.toggle_model_objects_visibility(true); // Apply temporary position m_temp_transformation = {};