diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-04-20 19:50:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-20 19:50:31 +0200 |
commit | ec9cfa53a6d992b269af0f7ccefcb1c7de0e7468 (patch) | |
tree | 0c66d29d91c9a71b923bdd6bb47159899e5e4572 | |
parent | 175942dcd10a0dc2e35c4e52992404c5c974c45f (diff) | |
parent | 8b1b2f6a4cfb65d186097e29d4979838e9114685 (diff) |
Merge pull request #28239 from jbuck3/editor-tooltip-fix
Fix editor tooltip formatting
-rw-r--r-- | editor/editor_inspector.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index b630442ad6..f1f68a14de 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -1527,7 +1527,7 @@ void EditorInspector::update_tree() { if (E) { descr = E->get().brief_description; } - class_descr_cache[type2] = descr.word_wrap(80); + class_descr_cache[type2] = descr; } category->set_tooltip(p.name + "::" + (class_descr_cache[type2] == "" ? "" : class_descr_cache[type2])); @@ -1679,7 +1679,7 @@ void EditorInspector::update_tree() { while (F && descr == String()) { for (int i = 0; i < F->get().properties.size(); i++) { if (F->get().properties[i].name == propname.operator String()) { - descr = F->get().properties[i].description.strip_edges().word_wrap(80); + descr = F->get().properties[i].description.strip_edges(); break; } } |