mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Fixed regression of 71fa411100
where the PrintObject bounding box was not invalidated correctly when the transformation matrices of instances changed. Also refactored PrintObject::size() for const correctness.
This commit is contained in:
parent
e679bcced6
commit
c5fa400208
5 changed files with 21 additions and 17 deletions
|
@ -907,10 +907,8 @@ const BoundingBoxf3& ModelObject::raw_bounding_box() const
|
|||
|
||||
const Transform3d& inst_matrix = this->instances.front()->get_transformation().get_matrix(true);
|
||||
for (const ModelVolume *v : this->volumes)
|
||||
{
|
||||
if (v->is_model_part())
|
||||
m_raw_bounding_box.merge(v->mesh().transformed_bounding_box(inst_matrix * v->get_matrix()));
|
||||
}
|
||||
}
|
||||
return m_raw_bounding_box;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue