C#: Fix command line exporting

(cherry picked from commit f3f3365abd)
This commit is contained in:
RedworkDE 2023-07-07 20:51:46 +02:00 committed by Yuri Sizov
parent 42b8ae50d2
commit 3f334cb144
2 changed files with 2 additions and 1 deletions

View file

@ -2272,7 +2272,7 @@ void CSharpScript::reload_registered_script(Ref<CSharpScript> p_script) {
// If the EditorFileSystem singleton is available, update the file;
// otherwise, the file will be updated when the singleton becomes available.
EditorFileSystem *efs = EditorFileSystem::get_singleton();
if (efs) {
if (efs && !p_script->get_path().is_empty()) {
efs->update_file(p_script->get_path());
}
#endif