summaryrefslogtreecommitdiff
path: root/modules/gdscript/gdscript_editor.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-12-10 15:50:35 +0100
committerGitHub <noreply@github.com>2021-12-10 15:50:35 +0100
commit7658868616909822b880c6b4c0dba4ae68e823ad (patch)
tree37cf9e5beb1316e5a8211cf8065796fbd1627f1b /modules/gdscript/gdscript_editor.cpp
parent85380c52073d679c088d61fc663ec62cbd85b453 (diff)
parent1cf3f382ba34005d0f21f9459aa23813f29aacfc (diff)
Merge pull request #55784 from cdemirer/fix-lookup-symbol-class-member
Fix "Lookup Symbol" on global class members not switching to the class' script
Diffstat (limited to 'modules/gdscript/gdscript_editor.cpp')
-rw-r--r--modules/gdscript/gdscript_editor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp
index 34fe2364cb..ec01c19295 100644
--- a/modules/gdscript/gdscript_editor.cpp
+++ b/modules/gdscript/gdscript_editor.cpp
@@ -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;