Fix SLA crash

This commit is contained in:
tamasmeszaros 2023-07-19 15:04:33 +02:00
parent 8db0f20516
commit ea62d7b8fb
2 changed files with 3 additions and 1 deletions

View File

@ -399,7 +399,7 @@ ArrItem AdvancedItemConverter<ArrItem>::get_arritem(const Arrangeable &arrbl,
if (infl != 0) {
outline = offset_ex(outline, infl);
if (! envelope.empty())
envelope = offset_ex(outline, infl);
envelope = offset_ex(envelope, infl);
}
ArrItem ret;

View File

@ -632,6 +632,8 @@ ExPolygons ArrangeableSLAPrintObject::full_outline() const
Polygons ptmp = project_mesh(smesh.its, trafo_instance, [] {});
std::move(ptmp.begin(), ptmp.end(), std::back_inserter(polys));
ret = union_ex(polys);
} else {
ret = m_arrbl->full_outline();
}
return ret;