From b7740743b8ff3ccdeb81d13c1957819c6e7c273b Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Tue, 6 Dec 2022 14:07:51 +0100 Subject: [PATCH] Gizmo measure fixed to work with mirrored objects --- src/slic3r/GUI/Gizmos/GLGizmoMeasure.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoMeasure.cpp b/src/slic3r/GUI/Gizmos/GLGizmoMeasure.cpp index 6994bfa32..cc786b1ad 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoMeasure.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoMeasure.cpp @@ -1052,6 +1052,10 @@ void GLGizmoMeasure::update_if_needed() TriangleMesh volume_mesh = vol.volume->mesh(); volume_mesh.transform(vol.world_trafo); + + if (vol.world_trafo.matrix().determinant() < 0.0) + volume_mesh.flip_triangles(); + composite_mesh.merge(volume_mesh); }