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:
authorNicholas Bishop <nicholasbishop@gmail.com>2012-03-16 12:46:55 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2012-03-16 12:46:55 +0400
commit0a9f817d3500461835fc0d41eef0a33028a40461 (patch)
treebac1a26f8f38ddbcde95acb81c6b93026774d67f
parentf91407150a9415b55765abc7ac870c2be2703334 (diff)
Fix object mode check in stats_update.
Was checking object flag rather than mode.
-rw-r--r--source/blender/editors/space_info/info_stats.c2
1 files changed, 1 insertions, 1 deletions
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);
}