closes godotengine/godot#6382 - traverse classes docs so that all properties from inherited classes have tooltips accordingly
This commit is contained in:
parent
72d5ae84b3
commit
30acd5f834
1 changed files with 7 additions and 2 deletions
|
@ -2952,14 +2952,19 @@ void PropertyEditor::update_tree() {
|
|||
if (!found) {
|
||||
DocData *dd = EditorHelp::get_doc_data();
|
||||
Map<String, DocData::ClassDoc>::Element *E = dd->class_list.find(classname);
|
||||
if (E) {
|
||||
while (E && descr == String()) {
|
||||
for (int i = 0; i < E->get().properties.size(); i++) {
|
||||
if (E->get().properties[i].name == propname.operator String()) {
|
||||
descr = E->get().properties[i].description.strip_edges().word_wrap(80);
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!E->get().inherits.empty()) {
|
||||
E = dd->class_list.find(E->get().inherits);
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
descr_cache[classname][propname] = descr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue