mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Clean up EditorFileSystem script parsing
* Optimize only update modified/added/removed files. * Clean up documentation parsing.
This commit is contained in:
parent
e514e3732a
commit
5bdc0d97d3
6 changed files with 82 additions and 65 deletions
|
@ -2174,6 +2174,8 @@ Error ScriptEditor::_save_text_file(Ref<TextFile> p_text_file, const String &p_p
|
|||
p_text_file->set_last_modified_time(FileAccess::get_modified_time(p_path));
|
||||
}
|
||||
|
||||
EditorFileSystem::get_singleton()->update_file(p_path);
|
||||
|
||||
_res_saved_callback(sqscr);
|
||||
return OK;
|
||||
}
|
||||
|
@ -2492,7 +2494,6 @@ void ScriptEditor::save_all_scripts() {
|
|||
}
|
||||
|
||||
_update_script_names();
|
||||
EditorFileSystem::get_singleton()->update_script_classes();
|
||||
}
|
||||
|
||||
void ScriptEditor::apply_scripts() const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue