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

Ensure portrait node is removed from tree immediately #1598

Closed
wants to merge 1 commit into from

Conversation

vmedea
Copy link
Contributor

@vmedea vmedea commented Jun 5, 2023

queue_free() only removes the node from the tree when it is freed (before next frame). This gives a problem in change_speaker, which assumes the first child of the portrait container is the current speaker. So add a step to remove the node immediately.

`queue_free()` only removes the node from the tree when it is freed. This
gives a problem in `change_speaker`, which assumes the first child of
the portrait container is the current speaker.
@vmedea vmedea force-pushed the portrait-remove-fix branch from 7f961bc to 51177b6 Compare June 5, 2023 16:15
@vmedea vmedea changed the title dialogic: Ensure portrait node is removed from tree immediately Ensure portrait node is removed from tree immediately Jun 5, 2023
@Jowan-Spooner
Copy link
Collaborator

Hey @vmedea I'm sorry it took so long to respond.
First of all thank you for your contribution! I had already made this fix locally before I went on vacation, so it's now part of #1592.

So I will not merge this PR, but the fix is correct! Thanks again.

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.

2 participants