Fix how scripts reload outside of ScriptEditor
This commit is contained in:
parent
aef11a1427
commit
63674648fb
3 changed files with 22 additions and 0 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue