summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_editor_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-01-19 10:09:55 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-01-19 10:09:55 +0100
commit4679f8724a3730c63bee36f44b7699b0a550bc14 (patch)
tree7aa9bede0760b8937dd9454b9c1f5cf3a988d73d /editor/plugins/script_editor_plugin.cpp
parent56ac1a67cdfdccc64757197464d9bc1f2704a2f0 (diff)
parent5bdc0d97d35b254c6a710e95582b135ab3dcefd2 (diff)
downloadredot-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.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 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 {