Skip to content

Commit ce2a09f

Browse files
committed
Merge pull request godotengine#89739 from jsjtxietian/group-step
Add progress bar when updating scene groups
2 parents 684e7aa + cbb67d1 commit ce2a09f

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
@@ -1664,8 +1664,10 @@ void EditorFileSystem::_queue_update_script_class(const String &p_path) {
16641664
}
16651665

16661666
void EditorFileSystem::_update_scene_groups() {
1667-
update_scene_mutex.lock();
1667+
EditorProgress ep("update_scene_groups", TTR("Update Scene Groups"), update_scene_paths.size());
1668+
int step_count = 0;
16681669

1670+
update_scene_mutex.lock();
16691671
for (const String &path : update_scene_paths) {
16701672
ProjectSettings::get_singleton()->remove_scene_groups_cache(path);
16711673

@@ -1681,6 +1683,8 @@ void EditorFileSystem::_update_scene_groups() {
16811683
if (!scene_groups.is_empty()) {
16821684
ProjectSettings::get_singleton()->add_scene_groups_cache(path, scene_groups);
16831685
}
1686+
1687+
ep.step(TTR("Updating Scene Groups..."), step_count++);
16841688
}
16851689

16861690
update_scene_paths.clear();

0 commit comments

Comments
 (0)