mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-15 01:22:37 -07:00
Hotfix for crash when empty pad and support mesh is generated.
This commit is contained in:
@@ -713,7 +713,7 @@ struct Pad {
|
||||
}
|
||||
|
||||
tmesh.translate(0, 0, float(zlevel));
|
||||
tmesh.require_shared_vertices();
|
||||
if (!tmesh.empty()) tmesh.require_shared_vertices();
|
||||
}
|
||||
|
||||
bool empty() const { return tmesh.facets_count() == 0; }
|
||||
@@ -2626,10 +2626,10 @@ std::vector<ExPolygons> SLASupportTree::slice(
|
||||
}
|
||||
|
||||
size_t len = grid.size();
|
||||
for (const Slices slv : slices) { len = std::min(len, slv.size()); }
|
||||
for (const Slices &slv : slices) { len = std::min(len, slv.size()); }
|
||||
|
||||
// Either the support or the pad or both has to be non empty
|
||||
assert(!slices.empty());
|
||||
if (slices.empty()) return {};
|
||||
|
||||
Slices &mrg = slices.front();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user