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

Fix placement blueprints not being correctly removed after a rolled back placement #12437

Merged
merged 2 commits into from
Apr 16, 2021

Conversation

peppy
Copy link
Member

@peppy peppy commented Apr 16, 2021

This is hard to write a test for on its own since nothing actually uses the non-commit path apart from the BlueprintContainer itself (which handles correctly as a result), but will be used for upcoming work to fix #10959.

The issue is that the .Expire call is only triggered if the removePlacement() function is run, but as PlacementActive was returned to a false state on commit-revert, the ComposeBlueprintContainer is unable to know whether placement was never-started or has finished (and been reverted). I considered adding another entry in the enum for RolledBack or similar, but probably not worth doing so until we need it.

Before (can't exit placement):

20210416 141426 (dotnet)

After:

20210416 141335 (dotnet)

Copy link
Contributor

@smoogipoo smoogipoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good

@smoogipoo smoogipoo merged commit d3acbcc into ppy:master Apr 16, 2021
@peppy peppy deleted the fix-editor-placement-commit-false branch April 16, 2021 14:04
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.

Sliders can have zero length
2 participants