diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-12-16 15:05:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-16 15:05:09 +0100 |
commit | 3adae8599c0a7e821916043e8b3c3d4929acfebb (patch) | |
tree | 9c3fcdee00ada9f9bbea0ede4c03b5dfa9cafedc /editor | |
parent | 83b15561836447c622e8c961e0558a0d2c5cc728 (diff) | |
parent | 30acd5f83490851e6a1bfa2704bda4b187238ee3 (diff) |
Merge pull request #14698 from carlosfvieira/6382-Properties_in_the_inspector_lacking_tooltips
Proposed change to close issue "#6382 - Properties in the inspector lacking tooltips"
Diffstat (limited to 'editor')
-rw-r--r-- | editor/property_editor.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp index 16ce364b92..623b0e15ab 100644 --- a/editor/property_editor.cpp +++ b/editor/property_editor.cpp @@ -2953,14 +2953,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; } |