UI: fullstop at end of tooltips

Allows for multiple sentences not to look strange.
Convention not to include in RNA remains.
This commit is contained in:
Campbell Barton 2017-09-20 23:58:08 +10:00
parent 99c9f17098
commit adb647fb92
Notes: blender-bot 2023-02-14 06:19:41 +01:00
Referenced by issue #53683, 2.79a release
1 changed files with 3 additions and 1 deletions

View File

@ -342,11 +342,13 @@ static uiTooltipData *ui_tooltip_data_from_button(bContext *C, uiBut *but)
/* Tip */
if (but_tip.strinfo) {
BLI_strncpy(data->header, but_tip.strinfo, sizeof(data->lines[0]));
if (enum_label.strinfo) {
BLI_snprintf(data->header, sizeof(data->header), "%s: ", but_tip.strinfo);
BLI_strncpy(data->active_info, enum_label.strinfo, sizeof(data->lines[0]));
}
else {
BLI_snprintf(data->header, sizeof(data->header), "%s.", but_tip.strinfo);
}
data->format[data->totline].style = UI_TIP_STYLE_HEADER;
data->totline++;