diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-09-02 20:25:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-02 20:25:14 +0200 |
commit | 10b040ab20b396abd7fbd108ce3345834344fb34 (patch) | |
tree | 8262378a2b837e9fb7b43779b9938e82733a11f4 /modules | |
parent | d03ce5c2271ef2d8f7f44003a6aa678149943f4a (diff) | |
parent | e3d05fa42da89540a1eb1d9fd7964b2b953e39b6 (diff) |
Merge pull request #31893 from bojidar-bg/25081-gdscript-index-self
Re-allow indexing on objects and other non-builtin types
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 9c5b78c8f3..e96bf0238a 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -6585,7 +6585,7 @@ GDScriptParser::DataType GDScriptParser::_reduce_node_type(Node *p_node) { return DataType(); } } - if (check_types && !node_type.has_type) { + if (check_types && !node_type.has_type && base_type.kind == DataType::BUILTIN) { // Can infer indexing type for some variant types DataType result; result.has_type = true; |