You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Variant: Rename Type::_RID to Type::RID
The underscore prefix was used to avoid the conflict between the `RID` class name and the matching enum value in `Variant::Type`. This can be fixed differently by prefixing uses of the `RID` class in `Variant` with the scope resolution operator, as done already for `AABB`.
This commit is contained in:
@@ -2541,7 +2541,7 @@ void GDScriptAnalyzer::reduce_subscript(GDScriptParser::SubscriptNode *p_subscri
|
||||
error = index_type.builtin_type != Variant::INT && index_type.builtin_type != Variant::STRING;
|
||||
break;
|
||||
// Don't support indexing, but we will check it later.
|
||||
case Variant::_RID:
|
||||
case Variant::RID:
|
||||
case Variant::BOOL:
|
||||
case Variant::CALLABLE:
|
||||
case Variant::FLOAT:
|
||||
@@ -2574,7 +2574,7 @@ void GDScriptAnalyzer::reduce_subscript(GDScriptParser::SubscriptNode *p_subscri
|
||||
|
||||
switch (base_type.builtin_type) {
|
||||
// Can't index at all.
|
||||
case Variant::_RID:
|
||||
case Variant::RID:
|
||||
case Variant::BOOL:
|
||||
case Variant::CALLABLE:
|
||||
case Variant::FLOAT:
|
||||
|
||||
Reference in New Issue
Block a user