mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 13:12:42 +00:00
Fix Crash when adding scenes with a group to the level scene
Fixes #94274
This commit is contained in:
parent
82cedc83c9
commit
8e1e0d4b42
@ -275,6 +275,11 @@ void GroupsEditor::_queue_update_groups_and_tree() {
|
||||
|
||||
void GroupsEditor::_update_groups_and_tree() {
|
||||
update_groups_and_tree_queued = false;
|
||||
// The scene_root_node could be unset before we actually run this code because this is queued with call_deferred().
|
||||
// In that case NOTIFICATION_VISIBILITY_CHANGED will call this function again soon.
|
||||
if (!scene_root_node) {
|
||||
return;
|
||||
}
|
||||
_update_groups();
|
||||
_update_tree();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user