summaryrefslogtreecommitdiffstats
path: root/editor/editor_file_system.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor_file_system.cpp')
-rw-r--r--editor/editor_file_system.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp
index f0dc850af0..3dc3c660ce 100644
--- a/editor/editor_file_system.cpp
+++ b/editor/editor_file_system.cpp
@@ -1891,7 +1891,7 @@ void EditorFileSystem::_update_scene_groups() {
continue;
}
- const HashSet<StringName> scene_groups = _get_scene_groups(path);
+ const HashSet<StringName> scene_groups = PackedScene::get_scene_groups(path);
if (!scene_groups.is_empty()) {
ProjectSettings::get_singleton()->add_scene_groups_cache(path, scene_groups);
}
@@ -1935,12 +1935,6 @@ void EditorFileSystem::_get_all_scenes(EditorFileSystemDirectory *p_dir, HashSet
}
}
-HashSet<StringName> EditorFileSystem::_get_scene_groups(const String &p_path) {
- Ref<PackedScene> packed_scene = ResourceLoader::load(p_path);
- ERR_FAIL_COND_V(packed_scene.is_null(), HashSet<StringName>());
- return packed_scene->get_state()->get_all_groups();
-}
-
void EditorFileSystem::update_file(const String &p_file) {
ERR_FAIL_COND(p_file.is_empty());
update_files({ p_file });