Tech ENABLE_WORLD_COORDINATE - Fixed Move and Rotate Gizmo size when the selected instance is scaled

Fixed conflicts during rebase with master
This commit is contained in:
enricoturri1966 2021-10-13 13:11:59 +02:00
parent 30a0246610
commit e76b5875b7
2 changed files with 3 additions and 3 deletions

View file

@ -453,7 +453,7 @@ BoundingBoxf3 GLGizmoMove3D::get_selection_box()
const Selection::IndicesList& ids = selection.get_volume_idxs();
for (unsigned int id : ids) {
const GLVolume* v = selection.get_volume(id);
box.merge(v->transformed_convex_hull_bounding_box(v->get_volume_transformation().get_matrix()));
box.merge(v->transformed_convex_hull_bounding_box(v->get_instance_transformation().get_matrix(true, true, false, true) * v->get_volume_transformation().get_matrix()));
}
}
return box;