diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2016-11-26 14:47:11 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2016-12-08 16:25:05 +0300 |
commit | e9290252d60edbe28c86e0bc80a6229d932f04a8 (patch) | |
tree | 35bdc0ec857cec99043f088f262af8a9114008da /xs/src/libslic3r/PrintObject.cpp | |
parent | 86c8207d31d7f6c08a5f9aa956f6ebb300c4dd33 (diff) |
Fixed regression in the _make_perimeters port
Diffstat (limited to 'xs/src/libslic3r/PrintObject.cpp')
-rw-r--r-- | xs/src/libslic3r/PrintObject.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xs/src/libslic3r/PrintObject.cpp b/xs/src/libslic3r/PrintObject.cpp index 742f55da4..3f41179dc 100644 --- a/xs/src/libslic3r/PrintObject.cpp +++ b/xs/src/libslic3r/PrintObject.cpp @@ -938,7 +938,8 @@ PrintObject::_make_perimeters() if (!region.config.extra_perimeters || region.config.perimeters == 0 - || region.config.fill_density == 0) continue; + || region.config.fill_density == 0 + || this->layer_count() < 2) continue; for (size_t i = 0; i <= (this->layer_count()-2); ++i) { LayerRegion &layerm = *this->get_layer(i)->get_region(region_id); @@ -1002,7 +1003,7 @@ PrintObject::_make_perimeters() #ifdef DEBUG if (slice->extra_perimeters > 0) - printf(" adding %d more perimeter(s) at layer %zu\n", slice->extra_perimeters, layer->id(); + printf(" adding %d more perimeter(s) at layer %zu\n", slice->extra_perimeters, i); #endif } } |