Merge pull request #51729 from yjh0502/ext-reload-master

Auto-reload scripts with external editor
This commit is contained in:
Rémi Verschelde 2021-08-17 19:42:44 +02:00 committed by GitHub
commit aa3909cf54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View file

@ -666,6 +666,8 @@ void ScriptEditor::_update_modified_scripts_for_external_editor(Ref<Script> p_fo
script->set_source_code(rel_script->get_source_code());
script->set_last_modified_time(rel_script->get_last_modified_time());
script->update_exports();
_trigger_live_script_reload();
}
}
}