Merge pull request #39015 from ThakeeNathees/dict-key-autocomplete-regression-fix

regression: dictionary key no autocomplete fix
This commit is contained in:
Rémi Verschelde 2020-05-25 15:58:08 +02:00 committed by GitHub
commit bfac9b3538
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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) {