1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

GDScript: Fix typed array with custom classes

This commit is contained in:
George Marques
2021-10-12 10:41:04 -03:00
parent b67e68bce3
commit 34288b24a6
3 changed files with 13 additions and 0 deletions

View File

@@ -470,6 +470,7 @@ GDScriptParser::DataType GDScriptAnalyzer::resolve_datatype(GDScriptParser::Type
GDScriptParser::DataType container_type = resolve_datatype(p_type->container_type);
if (container_type.kind != GDScriptParser::DataType::VARIANT) {
container_type.is_meta_type = false;
result.set_container_element_type(container_type);
}
}