mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Fix wrong docs opening in script override gutter
This commit is contained in:
parent
6991e9b43d
commit
dc3990fea4
1 changed files with 14 additions and 6 deletions
|
@ -1056,14 +1056,22 @@ void ScriptTextEditor::_update_connected_methods() {
|
|||
inherited_script = inherited_script->get_base_script();
|
||||
}
|
||||
|
||||
if (found_base_class.is_empty() && base_class) {
|
||||
List<MethodInfo> methods;
|
||||
ClassDB::get_method_list(base_class, &methods);
|
||||
for (int j = 0; j < methods.size(); j++) {
|
||||
if (methods[j].name == name) {
|
||||
found_base_class = "builtin:" + base_class;
|
||||
if (found_base_class.is_empty()) {
|
||||
while (base_class) {
|
||||
List<MethodInfo> methods;
|
||||
ClassDB::get_method_list(base_class, &methods, true);
|
||||
for (int j = 0; j < methods.size(); j++) {
|
||||
if (methods[j].name == name) {
|
||||
found_base_class = "builtin:" + base_class;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
ClassDB::ClassInfo *base_class_ptr = ClassDB::classes.getptr(base_class)->inherits_ptr;
|
||||
if (base_class_ptr == nullptr) {
|
||||
break;
|
||||
}
|
||||
base_class = base_class_ptr->name;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue