From 4e4c3a43319376121d9e839c142f9cc82cab0566 Mon Sep 17 00:00:00 2001 From: Filip Sykala - NTB T15p Date: Thu, 21 Sep 2023 13:47:26 +0200 Subject: [PATCH] Fix rotation of SVG object by slider --- src/slic3r/GUI/Gizmos/GLGizmoSVG.cpp | 4 ++-- src/slic3r/GUI/SurfaceDrag.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoSVG.cpp b/src/slic3r/GUI/Gizmos/GLGizmoSVG.cpp index 50dec4f870..f3359f61dc 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoSVG.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoSVG.cpp @@ -234,8 +234,8 @@ TransformationType get_transformation_type(const Selection &selection) { assert(selection.is_single_full_object() || selection.is_single_volume()); return selection.is_single_volume() ? - TransformationType::Local_Relative_Joint : - TransformationType::Instance_Relative_Joint; // object + TransformationType::Local_Relative_Independent : + TransformationType::Instance_Relative_Independent; // object } } // namespace diff --git a/src/slic3r/GUI/SurfaceDrag.cpp b/src/slic3r/GUI/SurfaceDrag.cpp index fb491e99ca..c15e17a590 100644 --- a/src/slic3r/GUI/SurfaceDrag.cpp +++ b/src/slic3r/GUI/SurfaceDrag.cpp @@ -345,8 +345,8 @@ void do_local_z_rotate(GLCanvas3D &canvas, double relative_angle) auto selection_rotate_fnc = [&selection, &relative_angle](){ TransformationType transformation_type = selection.is_single_volume() ? - TransformationType::Local_Relative_Joint : - TransformationType::Instance_Relative_Joint; + TransformationType::Local_Relative_Independent : + TransformationType::Instance_Relative_Independent; selection.rotate(Vec3d(0., 0., relative_angle), transformation_type); }; selection_transform(selection, selection_rotate_fnc);