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

Update sibling indices after a node is removed. #75767

Merged

Conversation

spanzeri
Copy link
Contributor

@spanzeri spanzeri commented Apr 6, 2023

With change 104392e the code to update node indices on removal was erronously removed. The out of date indices would cause crashes while selecting nodes in a graph editor (e.g. animation tree) and selected nodes are oftern pushed to beginning or end of the child list for the parent.

With change 104392e the code to update node indices on removal was erronously removed.
The out of date indices would cause crashes while selecting nodes in a graph editor (e.g. animation tree) and selected nodes are oftern pushed to beginning or end of the child list for the parent.
@spanzeri spanzeri requested a review from a team as a code owner April 6, 2023 20:57
@KoBeWi
Copy link
Member

KoBeWi commented Apr 6, 2023

Is this the crash I reported in #75701 (comment)?
I think #75627 is going to fix this.

@KoBeWi KoBeWi added this to the 4.1 milestone Apr 6, 2023
@reduz
Copy link
Member

reduz commented Apr 6, 2023

@KoBeWi That one needs more testing, so I think It's probably better to merge this one for now.

@clayjohn clayjohn merged commit 132000f into godotengine:master Apr 6, 2023
@clayjohn
Copy link
Member

clayjohn commented Apr 6, 2023

Thanks for identifying and fixing this so quickly!

@spanzeri spanzeri deleted the missing-node-index-update-on-deletion branch April 15, 2023 14:44
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.

4 participants