Merge remote-tracking branch 'origin/vb_slicing_fix'

This commit is contained in:
bubnikv
2018-09-14 15:08:07 +02:00
8 changed files with 379 additions and 142 deletions

View File

@@ -610,6 +610,7 @@ const BoundingBoxf3& ModelObject::bounding_box() const
BoundingBoxf3 raw_bbox;
for (const ModelVolume *v : this->volumes)
if (! v->modifier)
// mesh.bounding_box() returns a cached value.
raw_bbox.merge(v->mesh.bounding_box());
BoundingBoxf3 bb;
for (const ModelInstance *i : this->instances)