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

Unedit nodes early when closing scene tab #80849

Merged
merged 1 commit into from
Sep 2, 2023

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Aug 21, 2023

Same error as in #80609 also affects GridMap and probably other node-based editors. The reason is that when scene was closed, the editor selection was cleared in a deferred manner, so by the time editors received edit(nullptr) to unedit node, the node was already freed.

This PR ensures that the editors can properly unedit nodes before they are freed.

#80610 is not needed anymore after this change.

@akien-mga akien-mga merged commit 6042275 into godotengine:master Sep 2, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@KoBeWi KoBeWi deleted the edit_NOTHING branch September 2, 2023 12:38
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.

3 participants