[Bf-blender-cvs] [8b53717] master: Fix T37750: Incorrect stats for dupli-metaballs
Campbell Barton
noreply at git.blender.org
Mon Dec 9 14:24:53 CET 2013
Commit: 8b53717c7875cd4aed5d9985d9f1fa3c416c75e2
Author: Campbell Barton
Date: Tue Dec 10 00:23:53 2013 +1100
http://developer.blender.org/rB8b53717c7875cd4aed5d9985d9f1fa3c416c75e2
Fix T37750: Incorrect stats for dupli-metaballs
===================================================================
M source/blender/editors/space_info/info_stats.c
===================================================================
diff --git a/source/blender/editors/space_info/info_stats.c b/source/blender/editors/space_info/info_stats.c
index 9686c6d..4babda0 100644
--- a/source/blender/editors/space_info/info_stats.c
+++ b/source/blender/editors/space_info/info_stats.c
@@ -296,7 +296,16 @@ static void stats_dupli_object(Base *base, Object *ob, SceneStats *stats)
}
else if (ob->parent && (ob->parent->transflag & (OB_DUPLIVERTS | OB_DUPLIFACES))) {
/* Dupli Verts/Faces */
- int tot = count_duplilist(ob->parent);
+ int tot;
+
+ /* metaball dupli-instances are tessellated once */
+ if (ob->type == OB_MBALL) {
+ tot = 1;
+ }
+ else {
+ tot = count_duplilist(ob->parent);
+ }
+
stats->totobj += tot;
stats_object(ob, base->flag & SELECT, tot, stats);
}
More information about the Bf-blender-cvs
mailing list