From e8251289d2cce3fa5fe0586abd50c8c5d5101d09 Mon Sep 17 00:00:00 2001 From: Antonioya Date: Sat, 10 Nov 2018 11:48:02 +0100 Subject: GP: Add to stats number of objects/selected This information was not visible when select a GP object and can be useful. --- source/blender/editors/space_info/info_stats.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/space_info') diff --git a/source/blender/editors/space_info/info_stats.c b/source/blender/editors/space_info/info_stats.c index 353ad59798e..2bdb21633d9 100644 --- a/source/blender/editors/space_info/info_stats.c +++ b/source/blender/editors/space_info/info_stats.c @@ -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); -- cgit v1.2.3