mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Merge pull request #35543 from timothyqiu/notification-crash
Fixes crash in Spatial::notification
This commit is contained in:
@@ -125,6 +125,7 @@ void Spatial::_notification(int p_what) {
|
||||
|
||||
switch (p_what) {
|
||||
case NOTIFICATION_ENTER_TREE: {
|
||||
ERR_FAIL_COND(!get_tree());
|
||||
|
||||
Node *p = get_parent();
|
||||
if (p)
|
||||
|
||||
Reference in New Issue
Block a user