Skip to content

Commit cbb67d1

Browse files
committed
Add progress bar when update scene groups
1 parent fe01776 commit cbb67d1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

editor/editor_file_system.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1657,8 +1657,10 @@ void EditorFileSystem::_queue_update_script_class(const String &p_path) {
16571657
}
16581658

16591659
void EditorFileSystem::_update_scene_groups() {
1660-
update_scene_mutex.lock();
1660+
EditorProgress ep("update_scene_groups", TTR("Update Scene Groups"), update_scene_paths.size());
1661+
int step_count = 0;
16611662

1663+
update_scene_mutex.lock();
16621664
for (const String &path : update_scene_paths) {
16631665
ProjectSettings::get_singleton()->remove_scene_groups_cache(path);
16641666

@@ -1674,6 +1676,8 @@ void EditorFileSystem::_update_scene_groups() {
16741676
if (!scene_groups.is_empty()) {
16751677
ProjectSettings::get_singleton()->add_scene_groups_cache(path, scene_groups);
16761678
}
1679+
1680+
ep.step(TTR("Updating Scene Groups..."), step_count++);
16771681
}
16781682

16791683
update_scene_paths.clear();

0 commit comments

Comments
 (0)