mirror of
https://github.com/godotengine/godot-visual-script.git
synced 2026-01-05 22:10:23 +03:00
Fixes missing descriptions in search window of visualscript
(cherry picked from commit 5e8d31ef0eaf89c61b4180df470cad33fc5788bc)
This commit is contained in:
committed by
Rémi Verschelde
parent
6c12c2a707
commit
348a65513c
@@ -467,10 +467,11 @@ void VisualScriptPropertySelector::_item_selected() {
|
||||
|
||||
at_class = ClassDB::get_parent_class_nocheck(at_class);
|
||||
}
|
||||
Map<String, DocData::ClassDoc>::Element *T = dd->class_list.find(class_type);
|
||||
Vector<String> functions = name.rsplit("/", false);
|
||||
at_class = functions.size() > 3 ? functions[functions.size() - 2] : class_type;
|
||||
Map<String, DocData::ClassDoc>::Element *T = dd->class_list.find(at_class);
|
||||
if (T) {
|
||||
for (int i = 0; i < T->get().methods.size(); i++) {
|
||||
Vector<String> functions = name.rsplit("/", false, 1);
|
||||
if (T->get().methods[i].name == functions[functions.size() - 1]) {
|
||||
text = T->get().methods[i].description;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user