diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-10-01 16:35:43 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-10-01 16:35:43 +0400 |
commit | fd01e728773ebc9369a78dc27c5700394e8fd98b (patch) | |
tree | c711fd25bf50e221081d321d3488e99bb35355d1 /source/blender/editors/space_info | |
parent | 9b3e3f3e3197cc7f92f74a9f6b095c65bd43fa8f (diff) |
check SELECT flags for curves (was checking for nonzero which would break if new files use this field for other flags)
Diffstat (limited to 'source/blender/editors/space_info')
-rw-r--r-- | source/blender/editors/space_info/info_stats.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_info/info_stats.c b/source/blender/editors/space_info/info_stats.c index c1cddf092aa..9686c6dfc29 100644 --- a/source/blender/editors/space_info/info_stats.c +++ b/source/blender/editors/space_info/info_stats.c @@ -194,9 +194,9 @@ static void stats_object_edit(Object *obedit, SceneStats *stats) a = nu->pntsu; while (a--) { stats->totvert += 3; - if (bezt->f1) stats->totvertsel++; - if (bezt->f2) stats->totvertsel++; - if (bezt->f3) stats->totvertsel++; + if (bezt->f1 & SELECT) stats->totvertsel++; + if (bezt->f2 & SELECT) stats->totvertsel++; + if (bezt->f3 & SELECT) stats->totvertsel++; bezt++; } } |