mirror of
https://github.com/godotengine/godot.git
synced 2024-11-12 23:24:26 +00:00
Check if file was removed when parsing documentation
This commit is contained in:
parent
4db3716d8d
commit
292b24bae0
@ -1533,6 +1533,11 @@ void EditorFileSystem::_update_script_classes() {
|
||||
int index = -1;
|
||||
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++) {
|
||||
ScriptLanguage *lang = ScriptServer::get_language(i);
|
||||
if (lang->supports_documentation() && efd->files[index]->type == lang->get_type()) {
|
||||
|
Loading…
Reference in New Issue
Block a user