Skip to content

Commit

Permalink
perf improvement for extra_periemters
Browse files Browse the repository at this point in the history
  • Loading branch information
supermerill committed Feb 21, 2019
1 parent 591b116 commit 4e1c3a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libslic3r/PerimeterGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ void PerimeterGenerator::process()
// improvement for future: find a way to add perimeters only where it's needed.
bool has_overhang = false;
if (this->config->extra_perimeters && !last.empty() && !overhangs_unsupported.empty()) {
size_t unsupported_test = intersection(overhangs_unsupported, last).size();
if (unsupported_test > 0) {
overhangs_unsupported = intersection_ex(overhangs_unsupported, last);
if (overhangs_unsupported.size() > 0) {
//add fake perimeters here
has_overhang = true;
}
Expand Down

0 comments on commit 4e1c3a1

Please sign in to comment.