Tech ENABLE_WORLD_COORDINATE - Fixed Move and Rotate Gizmo size when the selected instance is scaled
This commit is contained in:
parent
d9b3386d08
commit
8c30ddc54f
3 changed files with 4 additions and 5 deletions
|
@ -216,9 +216,9 @@ void GLGizmoRotate::init_data_from_selection(const Selection& selection)
|
|||
const Selection::IndicesList& ids = selection.get_volume_idxs();
|
||||
for (unsigned int id : ids) {
|
||||
const GLVolume* v = selection.get_volume(id);
|
||||
m_bounding_box.merge(v->transformed_convex_hull_bounding_box(v->get_volume_transformation().get_matrix()));
|
||||
m_bounding_box.merge(v->transformed_convex_hull_bounding_box(v->get_instance_transformation().get_matrix(true, true, false, true) * v->get_volume_transformation().get_matrix()));
|
||||
}
|
||||
m_center = selection.get_volume(*ids.begin())->get_instance_transformation().get_matrix() * m_bounding_box.center();
|
||||
m_center = selection.get_volume(*ids.begin())->get_instance_transformation().get_matrix(false, false, true, false) * m_bounding_box.center();
|
||||
}
|
||||
m_radius = Offset + m_bounding_box.radius();
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue