GP: Add to stats number of objects/selected

This information was not visible when select a GP object and can be useful.
This commit is contained in:
Antonioya
2018-11-10 11:48:02 +01:00
parent c7d2b4530a
commit e8251289d2

View File

@@ -535,8 +535,9 @@ static void stats_string(ViewLayer *view_layer)
}
else if ((ob) && (ob->type == OB_GPENCIL)) {
ofs += BLI_snprintf(s + ofs, MAX_INFO_LEN - ofs,
IFACE_("Layers:%s | Frames:%s | Strokes:%s | Points:%s"),
stats_fmt.totgplayer, stats_fmt.totgpframe, stats_fmt.totgpstroke, stats_fmt.totgppoint);
IFACE_("Layers:%s | Frames:%s | Strokes:%s | Points:%s | Objects:%s/%s"),
stats_fmt.totgplayer, stats_fmt.totgpframe, stats_fmt.totgpstroke,
stats_fmt.totgppoint, stats_fmt.totobjsel, stats_fmt.totobj);
ofs += BLI_strncpy_rlen(s + ofs, memstr, MAX_INFO_LEN - ofs);
ofs += BLI_strncpy_rlen(s + ofs, gpumemstr, MAX_INFO_LEN - ofs);