mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Fix how scripts reload outside of ScriptEditor
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user