mirror of
https://github.com/godotengine/godot.git
synced 2025-10-22 09:23:40 +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
|
|
@ -212,7 +212,7 @@ void ExtendGDScriptParser::parse_class_symbol(const GDScriptParser::ClassNode *p
|
|||
const Variant &default_value = m.constant->initializer->reduced_value;
|
||||
String value_text;
|
||||
if (default_value.get_type() == Variant::OBJECT) {
|
||||
RES res = default_value;
|
||||
Ref<Resource> res = default_value;
|
||||
if (res.is_valid() && !res->get_path().is_empty()) {
|
||||
value_text = "preload(\"" + res->get_path() + "\")";
|
||||
if (symbol.documentation.is_empty()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue