Merge pull request #89922 from brno32/override-gutter-icon-inner-class-method

Refactor check for overriden methods in inner classes
This commit is contained in:
Rémi Verschelde 2024-03-28 10:47:28 +01:00
commit 669fc368ac
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -1170,15 +1170,12 @@ void ScriptTextEditor::_update_connected_methods() {
continue;
}
// Account for inner classes
if (raw_name.contains(".")) {
// Strip inner class name from the method, and start from the right since
// our inner class might be inside another inner class
// Account for inner classes by stripping the class names from the method,
// starting from the right since our inner class might be inside of another inner class.
int pos = raw_name.rfind(".");
if (pos != -1) {
name = raw_name.substr(pos + 1);
}
}
String found_base_class;
StringName base_class = script->get_instance_base_type();