Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2018-11-10 13:48:02 +0300
committerAntonioya <blendergit@gmail.com>2018-11-10 13:48:02 +0300
commite8251289d2cce3fa5fe0586abd50c8c5d5101d09 (patch)
tree0c1e5d265401418a668bf0388e756598d394b3dd /source/blender/editors/space_info
parentc7d2b4530a098c4c8664f1df80c9d0f2f0b3ecc3 (diff)
GP: Add to stats number of objects/selected
This information was not visible when select a GP object and can be useful.
Diffstat (limited to 'source/blender/editors/space_info')
-rw-r--r--source/blender/editors/space_info/info_stats.c5
1 files changed, 3 insertions, 2 deletions
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);