diff options
author | Thakee Nathees <thakeenathees@gmail.com> | 2020-05-24 16:52:44 +0530 |
---|---|---|
committer | Thakee Nathees <thakeenathees@gmail.com> | 2020-05-24 16:52:44 +0530 |
commit | 13c372b5228f6f17a23aadb8fc59230c5a08c176 (patch) | |
tree | ffbb02b7ff5d241cf5a8f58f9197b6d478f660db /modules/gdscript | |
parent | 00949f0c5fcc6a4f8382a4a97d5591fd9ec380f8 (diff) |
regression: dictionary key no autocomplete fix
Fix: #38998
Diffstat (limited to 'modules/gdscript')
-rw-r--r-- | modules/gdscript/gdscript_editor.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 7433c4a5bc..50d8289fd1 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -2082,7 +2082,11 @@ static void _find_identifiers_in_base(const GDScriptCompletionContext &p_context if (!p_only_functions) { List<PropertyInfo> members; - tmp.get_property_list(&members); + if (p_base.value.get_type() != Variant::NIL) { + p_base.value.get_property_list(&members); + } else { + tmp.get_property_list(&members); + } for (List<PropertyInfo>::Element *E = members.front(); E; E = E->next()) { if (String(E->get().name).find("/") == -1) { |