mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 13:02:39 -07:00
Follow-up of 18c8003a0f -> Fixed bounding box of selected volumes
This commit is contained in:
@@ -251,13 +251,12 @@ double GLGizmoCut::calc_projection(const Linef3& mouse_ray) const
|
|||||||
BoundingBoxf3 GLGizmoCut::bounding_box() const
|
BoundingBoxf3 GLGizmoCut::bounding_box() const
|
||||||
{
|
{
|
||||||
BoundingBoxf3 ret;
|
BoundingBoxf3 ret;
|
||||||
|
|
||||||
const Selection& selection = m_parent.get_selection();
|
const Selection& selection = m_parent.get_selection();
|
||||||
const Selection::IndicesList& idxs = selection.get_volume_idxs();
|
const Selection::IndicesList& idxs = selection.get_volume_idxs();
|
||||||
for (unsigned int i : idxs) {
|
for (unsigned int i : idxs) {
|
||||||
const GLVolume* volume = selection.get_volume(i);
|
const GLVolume* volume = selection.get_volume(i);
|
||||||
if (!volume->is_modifier)
|
if (!volume->is_modifier)
|
||||||
ret.merge(volume->transformed_bounding_box());
|
ret.merge(volume->transformed_convex_hull_bounding_box());
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user