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:
Diffstat (limited to 'source/blender/src/edit.c')
-rw-r--r--source/blender/src/edit.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/src/edit.c b/source/blender/src/edit.c
index 1dcfb08c25b..998f92f947c 100644
--- a/source/blender/src/edit.c
+++ b/source/blender/src/edit.c
@@ -450,11 +450,12 @@ void count_object(Object *ob, int sel)
G.totmesh++;
me= get_mesh(ob);
if(me) {
- G.totvert+= me->totvert;
- G.totface+= me->totface;
+ int mult= (me->flag & ME_SUBSURF)?(1<<me->subdiv)*(1<<me->subdiv):1;
+ G.totvert+= me->totvert*mult;
+ G.totface+= me->totface*mult;
if(sel) {
- G.totvertsel+= me->totvert;
- G.totfacesel+= me->totface;
+ G.totvertsel+= me->totvert*mult;
+ G.totfacesel+= me->totface*mult;
}
}
break;