summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorThakee Nathees <thakeenathees@gmail.com>2020-06-05 12:25:07 +0530
committerThakee Nathees <thakeenathees@gmail.com>2020-06-05 12:25:07 +0530
commit95b0a00d2cd282a50c2d7f3a638b7ccfd8648947 (patch)
tree028d1a56e3083294a2ead810ab26da03ef870e6f /modules
parent9239412027b6c25009efab69dc39650e0d76c56d (diff)
Fix: Ctrl + Click not working for subclasses
Diffstat (limited to 'modules')
-rw-r--r--modules/gdscript/gdscript_editor.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp
index 7433c4a5bc..049b47b8ea 100644
--- a/modules/gdscript/gdscript_editor.cpp
+++ b/modules/gdscript/gdscript_editor.cpp
@@ -3089,6 +3089,14 @@ static Error _lookup_symbol_from_base(const GDScriptParser::DataType &p_base, co
return OK;
}
}
+
+ for (int i = 0; i < base_type.class_type->subclasses.size(); i++) {
+ if (base_type.class_type->subclasses[i]->name == p_symbol) {
+ r_result.type = ScriptLanguage::LookupResult::RESULT_SCRIPT_LOCATION;
+ r_result.location = base_type.class_type->subclasses[i]->line;
+ return OK;
+ }
+ }
}
base_type = base_type.class_type->base_type;
}