Merge pull request #28239 from jbuck3/editor-tooltip-fix
Fix editor tooltip formatting
This commit is contained in:
commit
ec9cfa53a6
|
@ -1527,7 +1527,7 @@ void EditorInspector::update_tree() {
|
||||||
if (E) {
|
if (E) {
|
||||||
descr = E->get().brief_description;
|
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]));
|
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()) {
|
while (F && descr == String()) {
|
||||||
for (int i = 0; i < F->get().properties.size(); i++) {
|
for (int i = 0; i < F->get().properties.size(); i++) {
|
||||||
if (F->get().properties[i].name == propname.operator String()) {
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue