Merge pull request #55784 from cdemirer/fix-lookup-symbol-class-member

Fix "Lookup Symbol" on global class members not switching to the class' script
This commit is contained in:
Rémi Verschelde 2021-12-10 15:50:35 +01:00 committed by GitHub
commit 7658868616
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -2810,6 +2810,7 @@ static Error _lookup_symbol_from_base(const GDScriptParser::DataType &p_base, co
r_result.type = ScriptLanguage::LookupResult::RESULT_SCRIPT_LOCATION;
r_result.location = base_type.class_type->get_member(p_symbol).get_line();
r_result.class_path = base_type.script_path;
r_result.script = GDScriptCache::get_shallow_script(r_result.class_path);
return OK;
}
base_type = base_type.class_type->base_type;