summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_editor_plugin.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2023-01-18 17:32:28 +0100
committerJuan Linietsky <reduzio@gmail.com>2023-01-18 20:56:45 +0100
commit5bdc0d97d35b254c6a710e95582b135ab3dcefd2 (patch)
treef616d058ca15d182915c07707bf7de4e0693e9f8 /editor/plugins/script_editor_plugin.cpp
parente514e3732a9588b650776cc962a9e4d8e6ded058 (diff)
downloadredot-engine-5bdc0d97d35b254c6a710e95582b135ab3dcefd2.tar.gz
Clean up EditorFileSystem script parsing
* Optimize only update modified/added/removed files. * Clean up documentation parsing.
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r--editor/plugins/script_editor_plugin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp
index 8777b73540..b36663d0bd 100644
--- a/editor/plugins/script_editor_plugin.cpp
+++ b/editor/plugins/script_editor_plugin.cpp
@@ -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 {