mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 05:31:01 +00:00 
			
		
		
		
	Merge pull request #71783 from Bartkk0/parse-check-deleted
Check if file was removed when parsing documentation
This commit is contained in:
		
						commit
						0440b3cf0e
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -1552,6 +1552,11 @@ void EditorFileSystem::_update_script_classes() { | ||||||
| 		int index = -1; | 		int index = -1; | ||||||
| 		EditorFileSystemDirectory *efd = find_file(path, &index); | 		EditorFileSystemDirectory *efd = find_file(path, &index); | ||||||
| 
 | 
 | ||||||
|  | 		if (!efd || index < 0) { | ||||||
|  | 			// The file was removed
 | ||||||
|  | 			continue; | ||||||
|  | 		} | ||||||
|  | 
 | ||||||
| 		for (int i = 0; i < ScriptServer::get_language_count(); i++) { | 		for (int i = 0; i < ScriptServer::get_language_count(); i++) { | ||||||
| 			ScriptLanguage *lang = ScriptServer::get_language(i); | 			ScriptLanguage *lang = ScriptServer::get_language(i); | ||||||
| 			if (lang->supports_documentation() && efd->files[index]->type == lang->get_type()) { | 			if (lang->supports_documentation() && efd->files[index]->type == lang->get_type()) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Rémi Verschelde
						Rémi Verschelde