From 5bcdd337707fd927e40cbcf47d57e6facb73da76 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 14 Jul 2005 17:57:27 +0000 Subject: [PATCH] - fix extremely dismal approximation of vertex & face counts for count_object. It is pretty obvious whoever changed this didn't think about it much or test it well... *cough* *cough*. --- source/blender/src/edit.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/blender/src/edit.c b/source/blender/src/edit.c index 652d16e55e1..74437bc771b 100644 --- a/source/blender/src/edit.c +++ b/source/blender/src/edit.c @@ -502,8 +502,10 @@ void count_object(Object *ob, int sel) /* note; do not make disp or get derived mesh here. spoils dependency order */ if (me->flag & ME_SUBSURF) { - totvert= me->totvert<subdiv; - totface= me->totface<subdiv; + /* approximate counts, about right for a mesh entirely made + * of quads and that is a closed 2-manifold. + */ + totvert= totface= me->totface*1<<(me->subdiv*2); } else { totvert= me->totvert; totface= me->totface;