Commit: e8251289d2cce3fa5fe0586abd50c8c5d5101d09
Author: Antonioya
Date:   Sat Nov 10 11:48:02 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBe8251289d2cce3fa5fe0586abd50c8c5d5101d09

GP: Add to stats number of objects/selected

This information was not visible when select a GP object and can be useful.

===================================================================

M       source/blender/editors/space_info/info_stats.c

===================================================================

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);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to