diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-19 10:09:55 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-19 10:09:55 +0100 |
commit | 4679f8724a3730c63bee36f44b7699b0a550bc14 (patch) | |
tree | 7aa9bede0760b8937dd9454b9c1f5cf3a988d73d /editor/plugins/script_editor_plugin.cpp | |
parent | 56ac1a67cdfdccc64757197464d9bc1f2704a2f0 (diff) | |
parent | 5bdc0d97d35b254c6a710e95582b135ab3dcefd2 (diff) | |
download | redot-engine-4679f8724a3730c63bee36f44b7699b0a550bc14.tar.gz |
Merge pull request #71628 from reduz/fixup-editor-file-system-script-parsing
Clean up EditorFileSystem script parsing
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 51687eb19a..188abf1f5c 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 { |