From d51296bca505c1ed773ad9afe26302d67fc66869 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Tue, 7 Feb 2023 16:46:57 +0100 Subject: [PATCH] Follow-up to 217708e812308f8dc7032a2b8ff7ab0f4efbf5c8 Fixing the transformation resets. --- src/libslic3r/Geometry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/Geometry.cpp b/src/libslic3r/Geometry.cpp index 1068ffa202..ac4af48283 100644 --- a/src/libslic3r/Geometry.cpp +++ b/src/libslic3r/Geometry.cpp @@ -854,9 +854,9 @@ TransformationSVD::TransformationSVD(const Transform3d& trafo) scale = !s.isApprox(Matrix3d::Identity()); anisotropic_scale = ! is_approx(s(0, 0), s(1, 1)) || ! is_approx(s(1, 1), s(2, 2)); - rotation = !v.isApprox(u.transpose()); + rotation = !v.isApprox(u); - if (anisotropic_scale && rotation) { + if (anisotropic_scale) { rotation_90_degrees = true; for (int i = 0; i < 3; ++i) { const Vec3d row = v.row(i).cwiseAbs();