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

Fix node notifications and positions #193

Merged
merged 1 commit into from
Feb 14, 2024
Merged

Fix node notifications and positions #193

merged 1 commit into from
Feb 14, 2024

Conversation

CedNaru
Copy link
Member

@CedNaru CedNaru commented Feb 13, 2024

I discovered that functions like _enter_tree() or_process() in gdextension are overridden by regular scripts.
When it's the case, the C++ code we wrote for nodes was no longer executed, leading to their positions no longer updated.
I no longer override those usual lifecycle callbacks anymore and rely on notifications instead.
_notification() is safe to override, Godot treats this method as a special case and call all implementations across native objects, extensions and scripts.

@CedNaru CedNaru merged commit feefd3a into master Feb 14, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants