You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-02 19:01:36 +00:00
GDScript: Allow accessing constants of outer classes
This commit is contained in:
@@ -6820,6 +6820,9 @@ GDScriptParser::DataType GDScriptParser::_reduce_identifier_type(const DataType
|
||||
result.class_type = outer_class;
|
||||
return result;
|
||||
}
|
||||
if (outer_class->constant_expressions.has(p_identifier)) {
|
||||
return outer_class->constant_expressions[p_identifier].type;
|
||||
}
|
||||
for (int i = 0; i < outer_class->subclasses.size(); i++) {
|
||||
if (outer_class->subclasses[i] == current_class) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user