Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch for #4620 - ensure posDetectSurfaces is invalidated on slice change #4679

Merged
merged 3 commits into from
Jan 7, 2019

Conversation

lordofhyphens
Copy link
Member

@lordofhyphens lordofhyphens commented Jan 6, 2019

Invalidate posDetectSurfaces during make_perimeters() when posSlice would also get invalidated.
Can't use invalidate_step() as that invalidates the perimeters as well.

Fixes #4620

@AppVeyorBot
Copy link

@lordofhyphens lordofhyphens force-pushed the patch-4620-invalidate-posDetectSurface branch from 8d36a25 to e4ee2bd Compare January 6, 2019 05:46
@lordofhyphens
Copy link
Member Author

Also have a regression test added to the CATCH test suite.

@AppVeyorBot
Copy link

@VanessaE
Copy link
Collaborator

VanessaE commented Jan 6, 2019

I can't comment on the code itself, but the behavior is spot-on. lgtm.

(no idea why CI barfed on the OSX build, but no problems here on Debian testing/Buster)

Make sure that we have 1 solid bottom layer and 2 solid top layers before invoking our change.
@lordofhyphens lordofhyphens force-pushed the patch-4620-invalidate-posDetectSurface branch from b4cccdd to 59414e1 Compare January 6, 2019 22:38
@alranel
Copy link
Member

alranel commented Jan 6, 2019

I'd turn this->state.invalidate(posSlice); into this->invalidate_step(posSlice); like we were doing before the bisected commit. In order to do this safely, I'd move set_started(posPerimeters) after the if (this->typed_slices) { block.
I think that state.invalidate() should be never called directly, except from invalidate_step() which ensures dependencies are invalidated too

…as well.

Move set_started() until after invalidations.
@lordofhyphens
Copy link
Member Author

Done.

@AppVeyorBot
Copy link

@lordofhyphens lordofhyphens merged commit 364f2a6 into master Jan 7, 2019
@lordofhyphens lordofhyphens deleted the patch-4620-invalidate-posDetectSurface branch January 7, 2019 00:03
lordofhyphens added a commit that referenced this pull request Mar 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants