-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
[GraphEdit] Correctly disconnect signal to connection_layer
#94810
[GraphEdit] Correctly disconnect signal to connection_layer
#94810
Conversation
connection_layer
Thanks! And congrats for your first merged Godot contribution 🎉 |
@akien-mga and @Geometror are we sure this code change is correct? I've built this locally against master, and I'm am noticing that this leads to this error.
In our extended The theme changed event is what seems to create the issue where the The handler that both READY and THEME_CHANGED call basically removes nodes like this: for (GraphNode* node : node_list) {
remove_child(node);
node->queue_free();
} It's this that creates an issue during theme changed which wasn't an issue in Godot 4.3.stable. What's even more bizarre is this only manifests if the UI has two |
If I wrap the call in the theme notification as: case NOTIFICATION_THEME_CHANGED:
if (is_node_ready()) {
// call my custom synchronize met
_synchronize_graph_with_script();
}
break; Then I don't see the issue, its only if the implementation adds/removes nodes before the node is ready that the calls to the add/remove child notify handlers lead to the signal not yet being connected. |
@Naros Thanks for reporting! I'm wondering if the problem you're encountering might be related to this specific commit, as this PR has already been contained in 4.3.stable build. Would you mind opening a separate issue and provide additional details about your testing environment and reproduction steps? |
Hmm @maidopi-usagi in that case, I wonder if the issue is some change in Godot 4.4 that breaks this commit. I nor none of our user community saw this on Godot 4.3.stable 🤔. Let me continue to check and once I know for sure, I'll open another issue. |
Fix #94811