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

Signals: tab_changed now is emitted when it's on scene tree #36613

Merged
merged 1 commit into from
Feb 27, 2020

Conversation

akien-mga
Copy link
Member

This is actually a fix by @kuruk-mm from #36426, but since it's not directly depend on that WIP PR I'll pushing it as standalone. It fixes a bug where TabContainer's add_child_notify would emit a signal even if not in the scene tree, potentially triggering crashes in connected callbacks that assume that scene nodes are initialized.

The callable_mp changes in #36246 expose that issue.

@akien-mga akien-mga added this to the 4.0 milestone Feb 27, 2020
@akien-mga akien-mga merged commit e66d519 into godotengine:master Feb 27, 2020
@akien-mga akien-mga deleted the tab-container-add-child-fix branch February 27, 2020 20:52
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.

2 participants