summaryrefslogtreecommitdiffstats
path: root/modules/mono/csharp_script.cpp
diff options
context:
space:
mode:
authorRedworkDE <10944644+RedworkDE@users.noreply.github.com>2023-07-07 20:51:46 +0200
committerRedworkDE <10944644+RedworkDE@users.noreply.github.com>2023-07-07 20:51:46 +0200
commitf3f3365abd7792a34469de0e9a4688500b26bf04 (patch)
treea6e2cf2f00b5e6564c6caf9db4142b94ec433392 /modules/mono/csharp_script.cpp
parentc3b0a92c3cd9a219c1b1776b48c147f1d0602f07 (diff)
downloadredot-engine-f3f3365abd7792a34469de0e9a4688500b26bf04.tar.gz
C#: Fix command line exporting
Diffstat (limited to 'modules/mono/csharp_script.cpp')
-rw-r--r--modules/mono/csharp_script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp
index 3e032f213b..1ed495943f 100644
--- a/modules/mono/csharp_script.cpp
+++ b/modules/mono/csharp_script.cpp
@@ -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