From 0a9f817d3500461835fc0d41eef0a33028a40461 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Fri, 16 Mar 2012 08:46:55 +0000 Subject: Fix object mode check in stats_update. Was checking object flag rather than mode. --- source/blender/editors/space_info/info_stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/space_info/info_stats.c b/source/blender/editors/space_info/info_stats.c index 120783db340..e42c19a57de 100644 --- a/source/blender/editors/space_info/info_stats.c +++ b/source/blender/editors/space_info/info_stats.c @@ -335,7 +335,7 @@ static void stats_update(Scene *scene) /* Pose Mode */ stats_object_pose(ob, &stats); } - else if(ob && (ob->flag & OB_MODE_ALL_PAINT)) { + else if(ob && (ob->mode & OB_MODE_ALL_PAINT)) { /* Sculpt and Paint Mode */ stats_object_paint(ob, &stats); } -- cgit v1.2.3