Skip to content

Commit

Permalink
Merge pull request #55784 from cdemirer/fix-lookup-symbol-class-member
Browse files Browse the repository at this point in the history
Fix "Lookup Symbol" on global class members not switching to the class' script
  • Loading branch information
akien-mga authored Dec 10, 2021
2 parents 85380c5 + 1cf3f38 commit 7658868
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/gdscript/gdscript_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7658868

Please sign in to comment.