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

SceneTreeEditor: Fix crash when TreeItem is removed before callback #90266

Merged

Conversation

akien-mga
Copy link
Member

Fixes #90235.

Quick fix, I went with an ad hoc callback instead of adding a new public API to Tree.

Can be reworked further if someone is interested, especially to figure out why we're deferring scroll calls to TreeItems that seem to fairly systematically get removed. Maybe there's some inefficiency to solve here.

Fixes godotengine#90235.

Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
Copy link
Member

@AThousandShips AThousandShips left a comment

Choose a reason for hiding this comment

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

LGTM, similar to how groups were fixed before

@akien-mga akien-mga merged commit 655e93d into godotengine:master Apr 5, 2024
16 checks passed
@akien-mga akien-mga deleted the scenetreeeditor-fix-treeitem-crash branch April 5, 2024 15:23
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.

Editor crash when opening project
2 participants