Fixed incorrect use of a boolean config value
This commit is contained in:
Vojtech Bubnik 2021-12-08 11:22:43 +01:00
parent fe0d7691c1
commit 981e249927

View File

@ -100,13 +100,13 @@ void Layer::restore_untyped_slices_no_extra_perimeters()
{
if (layer_needs_raw_backup(this)) {
for (LayerRegion *layerm : m_regions)
if (layerm->region().config().extra_perimeters.value <= 0)
if (! layerm->region().config().extra_perimeters.value)
layerm->slices.set(layerm->raw_slices, stInternal);
} else {
assert(m_regions.size() == 1);
LayerRegion *layerm = m_regions.front();
// This optimization is correct, as extra_perimeters are only reused by prepare_infill() with multi-regions.
//if (layerm->region().config().extra_perimeters.value <= 0)
//if (! layerm->region().config().extra_perimeters.value)
layerm->slices.set(this->lslices, stInternal);
}
}