From 99fb3fa51e00ef38e18a8098f7b664757b21b01f Mon Sep 17 00:00:00 2001 From: Filip Sykala - NTB T15p Date: Thu, 21 Sep 2023 13:42:45 +0200 Subject: [PATCH] Mirror do not change scale for svg object --- src/slic3r/GUI/Gizmos/GLGizmoSVG.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoSVG.cpp b/src/slic3r/GUI/Gizmos/GLGizmoSVG.cpp index ccdffd6cb8..50dec4f870 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoSVG.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoSVG.cpp @@ -1687,10 +1687,7 @@ void GLGizmoSVG::draw_size() selection.setup_cache(); auto selection_scale_fnc = [&selection, rel_scale = *new_relative_scale]() { - TransformationType type = selection.is_single_volume() ? - TransformationType::Local_Relative_Independent: - TransformationType::Instance_Relative_Independent; - selection.scale(rel_scale, type); + selection.scale(rel_scale, get_transformation_type(selection)); }; selection_transform(selection, selection_scale_fnc, m_volume); @@ -1853,11 +1850,8 @@ void GLGizmoSVG::draw_mirroring() Selection &selection = m_parent.get_selection(); selection.setup_cache(); - auto selection_mirror_fnc = [&selection, &axis](){ - TransformationType type = selection.is_single_volume()? - TransformationType::Local: - TransformationType::Instance; - selection.mirror(axis, type); + auto selection_mirror_fnc = [&selection, &axis](){ + selection.mirror(axis, get_transformation_type(selection)); }; selection_transform(selection, selection_mirror_fnc, m_volume);