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

🪲 Prevent checkpoint when the scene has not changed #281

Merged
merged 2 commits into from
Feb 19, 2022

Conversation

FabienRoger
Copy link
Contributor

Fixes #275

The fix is not very beautiful (it computes the hash of the scene to check if it was changed), but straightforward solutions don't work with the current setup (for example, just checking that the history of the pyeditor hasn't changed doesn't cut it, because if you modify the block, then move around, then focus out, the pyeditor will consider that the last change did change the block).

The solution I propose has the benefit of being robust against any "double checkpoint" that one might introduce in the future.

Furthermore, it doesn't cost more than the previous state of the program, since it was already serializing the whole scene every time.

Copy link
Member

@MathisFederico MathisFederico left a comment

Choose a reason for hiding this comment

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

I like it ! Thanks for the bugfix !

@MathisFederico MathisFederico merged commit 8e32763 into dev Feb 19, 2022
@MathisFederico MathisFederico deleted the bugfix/checkpoint-hover branch February 19, 2022 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Checkpoint is done when hovering CodeBlock even is source code is not modified
2 participants