Fix T37750: Incorrect stats for dupli-metaballs
This commit is contained in:
parent
2ef3f6159c
commit
8b53717c78
Notes:
blender-bot
2023-02-14 11:29:57 +01:00
Referenced by issue #37750, Mask modifier + Metaball instancing producing wrong stats in top bar
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue