Merge pull request #79173 from RedworkDE/net-commandline-exporting

C#: Fix command line exporting
This commit is contained in:
Rémi Verschelde 2023-07-08 18:23:06 +02:00
commit 157973ad5e
No known key found for this signature in database
GPG key ID: C3336907360768E1
2 changed files with 2 additions and 1 deletions

View file

@ -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;

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