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…
Reference in New Issue
Block a user