mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
Remove RES and REF typedefs in favor of spelled out Ref<>
These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
This commit is contained in:
parent
8762286110
commit
180e5d3028
147 changed files with 607 additions and 611 deletions
|
|
@ -560,7 +560,7 @@ Node *GDScriptWorkspace::_get_owner_scene_node(String p_path) {
|
|||
|
||||
for (int i = 0; i < owners.size(); i++) {
|
||||
NodePath owner_path = owners[i];
|
||||
RES owner_res = ResourceLoader::load(owner_path);
|
||||
Ref<Resource> owner_res = ResourceLoader::load(owner_path);
|
||||
if (Object::cast_to<PackedScene>(owner_res.ptr())) {
|
||||
Ref<PackedScene> owner_packed_scene = Ref<PackedScene>(Object::cast_to<PackedScene>(*owner_res));
|
||||
owner_scene_node = owner_packed_scene->instantiate();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue