Skip to content

Commit

Permalink
Fix Crash when adding scenes with a group to the level scene
Browse files Browse the repository at this point in the history
Fixes #94274
  • Loading branch information
jamie-pate committed Jul 19, 2024
1 parent 82cedc8 commit 8e1e0d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions editor/groups_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 8e1e0d4

Please sign in to comment.