mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
committed by
Rémi Verschelde
parent
a822bb9844
commit
58e9bf494d
@@ -224,8 +224,8 @@ Ref<Resource> Resource::duplicate(bool p_subresources) const {
|
||||
List<PropertyInfo> plist;
|
||||
get_property_list(&plist);
|
||||
|
||||
Resource *r = (Resource *)ClassDB::instance(get_class());
|
||||
ERR_FAIL_COND_V(!r, Ref<Resource>());
|
||||
Ref<Resource> r = (Resource *)ClassDB::instance(get_class());
|
||||
ERR_FAIL_COND_V(r.is_null(), Ref<Resource>());
|
||||
|
||||
for (List<PropertyInfo>::Element *E = plist.front(); E; E = E->next()) {
|
||||
|
||||
@@ -247,7 +247,7 @@ Ref<Resource> Resource::duplicate(bool p_subresources) const {
|
||||
}
|
||||
}
|
||||
|
||||
return Ref<Resource>(r);
|
||||
return r;
|
||||
}
|
||||
|
||||
void Resource::_set_path(const String &p_path) {
|
||||
|
||||
Reference in New Issue
Block a user