Skip to content

Commit

Permalink
fix fix fill ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
supermerill committed Sep 19, 2024
1 parent 3806785 commit 1735e3b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/libslic3r/Fill/Fill.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,11 @@ void Layer::make_fills(FillAdaptive::Octree* adaptive_fill_octree, FillAdaptive:
std::map<LayerIsland*, std::vector<std::vector<ExtrusionEntityCollection*>>> island_2_fillsby_priority;
for (size_t priority = 0; priority < fills_by_priority.size(); ++priority) {
for (size_t fill_idx = 0; fill_idx < fills_by_priority[priority].size(); ++fill_idx) {
if (fills_by_priority[priority][fill_idx]->empty()) {
delete fills_by_priority[priority][fill_idx];
fills_by_priority[priority][fill_idx] = nullptr;
continue;
}
LayerIsland *island = get_fill_island(*this, uint32_t(region_id), fills_by_priority[priority][fill_idx]->first_point());
if (island == nullptr) {
assert(false);
Expand Down

0 comments on commit 1735e3b

Please sign in to comment.