Fix how scripts reload outside of ScriptEditor

This commit is contained in:
Paul Joannon
2024-03-07 20:19:05 +01:00
parent aef11a1427
commit 63674648fb
3 changed files with 22 additions and 0 deletions

View File

@@ -204,6 +204,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()) {