diff options
Diffstat (limited to 'source/blender/editors/space_info/info_stats.c')
-rw-r--r-- | source/blender/editors/space_info/info_stats.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/editors/space_info/info_stats.c b/source/blender/editors/space_info/info_stats.c index b6eca8666a6..eff9736e556 100644 --- a/source/blender/editors/space_info/info_stats.c +++ b/source/blender/editors/space_info/info_stats.c @@ -66,6 +66,8 @@ #include "GPU_capabilities.h" +#include "trimesh.h" + #define MAX_INFO_NUM_LEN 16 typedef struct SceneStats { @@ -352,13 +354,13 @@ static void stats_object_pose(Object *ob, SceneStats *stats) static void stats_object_sculpt_dynamic_topology(Object *ob, SceneStats *stats) { - stats->totvert = ob->sculpt->bm->totvert; - stats->tottri = ob->sculpt->bm->totface; + stats->totvert = ob->sculpt->tm->totvert; + stats->tottri = ob->sculpt->tm->tottri; } static bool stats_is_object_dynamic_topology_sculpt(Object *ob, const eObjectMode object_mode) { - return (ob && (object_mode & OB_MODE_SCULPT) && ob->sculpt && ob->sculpt->bm); + return (ob && (object_mode & OB_MODE_SCULPT) && ob->sculpt && ob->sculpt->tm); } /* Statistics displayed in info header. Called regularly on scene changes. */ |