Propagate invalidation results from dependent invalidations. Mostly Fixes #4364

This commit is contained in:
Joseph Lenox 2018-04-03 22:56:49 -05:00
parent 4db029c753
commit 1869b0657d
2 changed files with 14 additions and 14 deletions

View File

@ -288,7 +288,7 @@ Print::invalidate_step(PrintStep step)
// propagate to dependent steps // propagate to dependent steps
if (step == psSkirt) { if (step == psSkirt) {
this->invalidate_step(psBrim); invalidated |= this->invalidate_step(psBrim);
} }
return invalidated; return invalidated;

View File

@ -288,25 +288,25 @@ PrintObject::invalidate_step(PrintObjectStep step)
// propagate to dependent steps // propagate to dependent steps
if (step == posPerimeters) { if (step == posPerimeters) {
this->invalidate_step(posPrepareInfill); invalidated |= this->invalidate_step(posPrepareInfill);
this->_print->invalidate_step(psSkirt); invalidated |= this->_print->invalidate_step(psSkirt);
this->_print->invalidate_step(psBrim); invalidated |= this->_print->invalidate_step(psBrim);
} else if (step == posDetectSurfaces) { } else if (step == posDetectSurfaces) {
this->invalidate_step(posPrepareInfill); invalidated |= this->invalidate_step(posPrepareInfill);
} else if (step == posPrepareInfill) { } else if (step == posPrepareInfill) {
this->invalidate_step(posInfill); invalidated |= this->invalidate_step(posInfill);
} else if (step == posInfill) { } else if (step == posInfill) {
this->_print->invalidate_step(psSkirt); invalidated |= this->_print->invalidate_step(psSkirt);
this->_print->invalidate_step(psBrim); invalidated |= this->_print->invalidate_step(psBrim);
} else if (step == posSlice) { } else if (step == posSlice) {
this->invalidate_step(posPerimeters); invalidated |= this->invalidate_step(posPerimeters);
this->invalidate_step(posDetectSurfaces); invalidated |= this->invalidate_step(posDetectSurfaces);
this->invalidate_step(posSupportMaterial); invalidated |= this->invalidate_step(posSupportMaterial);
}else if (step == posLayers) { }else if (step == posLayers) {
this->invalidate_step(posSlice); invalidated |= this->invalidate_step(posSlice);
} else if (step == posSupportMaterial) { } else if (step == posSupportMaterial) {
this->_print->invalidate_step(psSkirt); invalidated |= this->_print->invalidate_step(psSkirt);
this->_print->invalidate_step(psBrim); invalidated |= this->_print->invalidate_step(psBrim);
} }
return invalidated; return invalidated;