Skip to content

Commit

Permalink
Merge pull request #28239 from jbuck3/editor-tooltip-fix
Browse files Browse the repository at this point in the history
Fix editor tooltip formatting
  • Loading branch information
akien-mga authored Apr 20, 2019
2 parents 175942d + 8b1b2f6 commit ec9cfa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editor/editor_inspector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]));
Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit ec9cfa5

Please sign in to comment.