You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Fix autoload subscript regression
This commit is contained in:
@@ -3627,7 +3627,7 @@ void GDScriptAnalyzer::reduce_subscript(GDScriptParser::SubscriptNode *p_subscri
|
|||||||
result_type = attr_type;
|
result_type = attr_type;
|
||||||
p_subscript->is_constant = p_subscript->attribute->is_constant;
|
p_subscript->is_constant = p_subscript->attribute->is_constant;
|
||||||
p_subscript->reduced_value = p_subscript->attribute->reduced_value;
|
p_subscript->reduced_value = p_subscript->attribute->reduced_value;
|
||||||
} else if (!base_type.is_constant) {
|
} else if (!base_type.is_meta_type || !base_type.is_constant) {
|
||||||
valid = base_type.kind != GDScriptParser::DataType::BUILTIN;
|
valid = base_type.kind != GDScriptParser::DataType::BUILTIN;
|
||||||
#ifdef DEBUG_ENABLED
|
#ifdef DEBUG_ENABLED
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user