mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-11 03:31:49 +08:00
Gizmo measure fixed to work with mirrored objects
This commit is contained in:
parent
5351137183
commit
b7740743b8
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user