diff options
-rw-r--r-- | source/blender/editors/space_info/info_stats.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/space_info/info_stats.c b/source/blender/editors/space_info/info_stats.c index d7671a372c6..983e04127e0 100644 --- a/source/blender/editors/space_info/info_stats.c +++ b/source/blender/editors/space_info/info_stats.c @@ -764,6 +764,7 @@ void ED_info_draw_stats( FRAMES, STROKES, POINTS, + LIGHTS, MAX_LABELS_COUNT }; char labels[MAX_LABELS_COUNT][64]; @@ -779,6 +780,7 @@ void ED_info_draw_stats( STRNCPY(labels[FRAMES], IFACE_("Frames")); STRNCPY(labels[STROKES], IFACE_("Strokes")); STRNCPY(labels[POINTS], IFACE_("Points")); + STRNCPY(labels[LIGHTS], IFACE_("Lights")); int longest_label = 0; int i; @@ -832,6 +834,9 @@ void ED_info_draw_stats( stats_row(col1, labels[FACES], col2, stats_fmt.totfacesculpt, stats_fmt.totface, y, height); } } + else if ((ob) && (ob->type == OB_LAMP)) { + stats_row(col1, labels[LIGHTS], col2, stats_fmt.totlampsel, stats_fmt.totlamp, y, height); + } else { stats_row(col1, labels[VERTS], col2, stats_fmt.totvert, NULL, y, height); stats_row(col1, labels[EDGES], col2, stats_fmt.totedge, NULL, y, height); |