From fd2ea6b966a87aadeb2fe803f8297c4cf77c7641 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Fri, 16 Mar 2012 20:42:29 +0000 Subject: Follow up to fix in r44919: use standard stats in paint modes. Removed the special case for header statistics in sculpt/paint modes. The information provided was less useful, and less accurate even because it didn't reflect multires. --- source/blender/editors/space_info/info_stats.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'source/blender') diff --git a/source/blender/editors/space_info/info_stats.c b/source/blender/editors/space_info/info_stats.c index e42c19a57de..ea28057968a 100644 --- a/source/blender/editors/space_info/info_stats.c +++ b/source/blender/editors/space_info/info_stats.c @@ -251,16 +251,6 @@ static void stats_object_pose(Object *ob, SceneStats *stats) } } -static void stats_object_paint(Object *ob, SceneStats *stats) -{ - if(ob->type == OB_MESH) { - Mesh *me= ob->data; - - stats->totface= me->totface; - stats->totvert= me->totvert; - } -} - static void stats_dupli_object(Base *base, Object *ob, SceneStats *stats) { if(base->flag & SELECT) stats->totobjsel++; @@ -335,10 +325,6 @@ static void stats_update(Scene *scene) /* Pose Mode */ stats_object_pose(ob, &stats); } - else if(ob && (ob->mode & OB_MODE_ALL_PAINT)) { - /* Sculpt and Paint Mode */ - stats_object_paint(ob, &stats); - } else { /* Objects */ for(base= scene->base.first; base; base=base->next) -- cgit v1.2.3