mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
Rename Reference to RefCounted
This commit is contained in:
parent
fbb5a541ef
commit
04688b92ff
270 changed files with 926 additions and 926 deletions
|
@ -94,7 +94,7 @@ Variant PluginScript::_new(const Variant **p_args, int p_argcount, Callable::Cal
|
|||
Object *owner = nullptr;
|
||||
|
||||
if (get_instance_base_type() == "") {
|
||||
owner = memnew(Reference);
|
||||
owner = memnew(RefCounted);
|
||||
} else {
|
||||
owner = ClassDB::instance(get_instance_base_type());
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ Variant PluginScript::_new(const Variant **p_args, int p_argcount, Callable::Cal
|
|||
return Variant();
|
||||
}
|
||||
|
||||
Reference *r = Object::cast_to<Reference>(owner);
|
||||
RefCounted *r = Object::cast_to<RefCounted>(owner);
|
||||
if (r) {
|
||||
ref = REF(r);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue