mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	Add progress bar when update scene groups
This commit is contained in:
		
							parent
							
								
									fe01776f05
								
							
						
					
					
						commit
						cbb67d114e
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -1657,8 +1657,10 @@ void EditorFileSystem::_queue_update_script_class(const String &p_path) { | |||
| } | ||||
| 
 | ||||
| void EditorFileSystem::_update_scene_groups() { | ||||
| 	update_scene_mutex.lock(); | ||||
| 	EditorProgress ep("update_scene_groups", TTR("Update Scene Groups"), update_scene_paths.size()); | ||||
| 	int step_count = 0; | ||||
| 
 | ||||
| 	update_scene_mutex.lock(); | ||||
| 	for (const String &path : update_scene_paths) { | ||||
| 		ProjectSettings::get_singleton()->remove_scene_groups_cache(path); | ||||
| 
 | ||||
|  | @ -1674,6 +1676,8 @@ void EditorFileSystem::_update_scene_groups() { | |||
| 		if (!scene_groups.is_empty()) { | ||||
| 			ProjectSettings::get_singleton()->add_scene_groups_cache(path, scene_groups); | ||||
| 		} | ||||
| 
 | ||||
| 		ep.step(TTR("Updating Scene Groups..."), step_count++); | ||||
| 	} | ||||
| 
 | ||||
| 	update_scene_paths.clear(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 jsjtxietian
						jsjtxietian