Merge pull request #89261 from paulloz/core/fix-script-reloading-outside-script-editor

Fix how scripts reload outside of ScriptEditor
This commit is contained in:
Rémi Verschelde
2024-03-24 01:15:23 +01:00
3 changed files with 22 additions and 0 deletions

View File

@ -214,6 +214,7 @@ Error Resource::copy_from(const Ref<Resource> &p_resource) {
}
return OK;
}
void Resource::reload_from_file() {
String path = get_path();
if (!path.is_resource_file()) {