From 13c372b5228f6f17a23aadb8fc59230c5a08c176 Mon Sep 17 00:00:00 2001 From: Thakee Nathees Date: Sun, 24 May 2020 16:52:44 +0530 Subject: [PATCH] regression: dictionary key no autocomplete fix Fix: #38998 --- modules/gdscript/gdscript_editor.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 7433c4a5bc9..50d8289fd1d 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 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::Element *E = members.front(); E; E = E->next()) { if (String(E->get().name).find("/") == -1) {