Gizmo measure fixed to work with mirrored objects
This commit is contained in:
parent
5351137183
commit
b7740743b8
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue