Reverts an inadverent bug introduced in 4460b5ce50

Conflicts:

	xs/src/libslic3r/PerimeterGenerator.cpp
This commit is contained in:
bubnikv 2016-11-12 19:04:40 +01:00 committed by Alessandro Ranellucci
parent 0c63bc0f83
commit 9ed127274e

View File

@ -121,12 +121,20 @@ PerimeterGenerator::process()
coord_t distance = (i == 1) ? ext_pspacing2 : pspacing;
if (this->config->thin_walls) {
// This path will ensure, that the perimeters do not overfill, as in
// prusa3d/Slic3r GH #32, but with the cost of rounding the perimeters
// excessively, creating gaps, which then need to be filled in by the not very
// reliable gap fill algorithm.
// Also the offset2(perimeter, -x, x) may sometimes lead to a perimeter, which is larger than
// the original.
offsets = offset2(
last,
-(distance + min_spacing/2 - 1),
+(min_spacing/2 - 1)
);
} else {
// If "detect thin walls" is not enabled, this paths will be entered, which
// leads to overflows, as in prusa3d/Slic3r GH #32
offsets = offset(
last,
-distance