diff options
-rw-r--r-- | source/blender/editors/space_info/info_stats.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_info/info_stats.c b/source/blender/editors/space_info/info_stats.c index b51aec90e4f..225ca72a7d0 100644 --- a/source/blender/editors/space_info/info_stats.c +++ b/source/blender/editors/space_info/info_stats.c @@ -123,6 +123,10 @@ static bool stats_mesheval(Mesh *me_eval, bool is_selected, SceneStats *stats) static void stats_object(Object *ob, SceneStats *stats, GSet *objects_gset) { + if ((ob->base_flag & BASE_VISIBLE_VIEWLAYER) == 0) { + return; + } + const bool is_selected = (ob->base_flag & BASE_SELECTED) != 0; stats->totobj++; |