Fix object mode check in stats_update.

Was checking object flag rather than mode.
This commit is contained in:
Nicholas Bishop
2012-03-16 08:46:55 +00:00
parent f91407150a
commit 0a9f817d35

View File

@@ -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);
}