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

Immediately load persistent info to prevent overwritting #2530

Merged
merged 1 commit into from
Feb 15, 2025

Conversation

HuntJSparra
Copy link
Contributor

Fixes #2526 by calling _load_persistent_info() in _init() instead of _enter_tree(). Previously, _enter_tree() was called the frame after Dialogic.start(), causing new changes (e.g., register_character to be overwritten with the old persistent info.

The fix here is more general than the one proposed in #2526 (which only addressed text bubbles). During testing _init() was called after _exit_tree(), so there should be no race conditions with saving and loading persistent info on the same frame.

@Jowan-Spooner Jowan-Spooner merged commit 48c8b91 into dialogic-godot:main Feb 15, 2025
3 checks passed
@Jowan-Spooner
Copy link
Member

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

register_character calls for existing characters are ignored during the same frame the layout scene is created
2 participants