From e27d5cdc71c31343dab1b5535257200cf661132a Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Thu, 7 Dec 2023 14:56:18 +0100 Subject: [PATCH] SPE-2079: Fixed wiggling of Rotate gizmo when moving an object --- src/slic3r/GUI/Selection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Selection.cpp b/src/slic3r/GUI/Selection.cpp index 26cb356ca4..8b0da6312f 100644 --- a/src/slic3r/GUI/Selection.cpp +++ b/src/slic3r/GUI/Selection.cpp @@ -928,9 +928,9 @@ const std::pair Selection::get_bounding_sphere() const const TriangleMesh* hull = volume.convex_hull(); const indexed_triangle_set& its = (hull != nullptr) ? hull->its : m_model->objects[volume.object_idx()]->volumes[volume.volume_idx()]->mesh().its; - const Transform3d& matrix = volume.world_matrix(); + const Transform3f matrix = volume.world_matrix().cast(); for (const Vec3f& v : its.vertices) { - const Vec3d vv = matrix * v.cast(); + const Vec3f vv = matrix * v; points.push_back(Point(vv.x(), vv.y(), vv.z())); } }