Skip to content

Commit

Permalink
Merge pull request #79173 from RedworkDE/net-commandline-exporting
Browse files Browse the repository at this point in the history
C#: Fix command line exporting
  • Loading branch information
akien-mga committed Jul 8, 2023
2 parents bdcbfd7 + f3f3365 commit 157973a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions editor/editor_file_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1635,6 +1635,7 @@ void EditorFileSystem::_queue_update_script_class(const String &p_path) {
}

void EditorFileSystem::update_file(const String &p_file) {
ERR_FAIL_COND(p_file.is_empty());
EditorFileSystemDirectory *fs = nullptr;
int cpos = -1;

Expand Down
2 changes: 1 addition & 1 deletion modules/mono/csharp_script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 157973a

Please sign in to comment.