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

Wait one frame before clean to avoid disconnecting internal ONESHOT connections #2072

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

Jowan-Spooner
Copy link
Collaborator

Godot seemed to try to disconnect a signal we had already cleared (in timeline.clean()). Unfortunately it seemed pretty hard to differentiate these signals from other signals (because I wasn't allowed to access it's object). Luckily it is solved by simply waiting a frame because godot will have removed the connection on the next frame.

@Atlinx would love if you could try this!

@Jowan-Spooner Jowan-Spooner added the Bug 🐞 Something isn't working label Feb 6, 2024
@Atlinx
Copy link
Contributor

Atlinx commented Feb 6, 2024

Yep, the timeline works now with no errors, even when ending on a text event.

@Jowan-Spooner
Copy link
Collaborator Author

Thank you!

@Jowan-Spooner Jowan-Spooner merged commit 189a0fa into dialogic-godot:main Feb 6, 2024
2 checks passed
@Jowan-Spooner Jowan-Spooner deleted the fix-end-error branch February 11, 2024 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐞 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Debugger error after timeline ends when started from "Play Timeline" mode
2 participants