You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +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:
@@ -1012,7 +1012,7 @@ Variant SpriteFramesEditor::get_drag_data_fw(const Point2 &p_point, Control *p_f
|
||||
return Variant();
|
||||
}
|
||||
|
||||
RES frame = frames->get_frame(edited_anim, idx);
|
||||
Ref<Resource> frame = frames->get_frame(edited_anim, idx);
|
||||
|
||||
if (frame.is_null()) {
|
||||
return Variant();
|
||||
@@ -1036,7 +1036,7 @@ bool SpriteFramesEditor::can_drop_data_fw(const Point2 &p_point, const Variant &
|
||||
}
|
||||
|
||||
if (String(d["type"]) == "resource" && d.has("resource")) {
|
||||
RES r = d["resource"];
|
||||
Ref<Resource> r = d["resource"];
|
||||
|
||||
Ref<Texture2D> texture = r;
|
||||
|
||||
@@ -1080,7 +1080,7 @@ void SpriteFramesEditor::drop_data_fw(const Point2 &p_point, const Variant &p_da
|
||||
int at_pos = tree->get_item_at_position(p_point, true);
|
||||
|
||||
if (String(d["type"]) == "resource" && d.has("resource")) {
|
||||
RES r = d["resource"];
|
||||
Ref<Resource> r = d["resource"];
|
||||
|
||||
Ref<Texture2D> texture = r;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user