diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-01-16 12:15:25 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-01-16 13:00:43 +0300 |
commit | 7eda267df1a997c1525a0aa62ad2de2f1b77c6e5 (patch) | |
tree | 4586acf09d50d17f7161fa929149ce8768c978a4 /source/blender/blenkernel/intern/subdiv_stats.c | |
parent | 4fe6a2d9501415d98f3c6a995526a8802920eedd (diff) |
Subdiv: Reset evaluator creation statistics
Makes it more clear to see what was exactly happening at
the last invocation of subsurf modifier.
Diffstat (limited to 'source/blender/blenkernel/intern/subdiv_stats.c')
-rw-r--r-- | source/blender/blenkernel/intern/subdiv_stats.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/subdiv_stats.c b/source/blender/blenkernel/intern/subdiv_stats.c index 370aedad04f..dea536459b4 100644 --- a/source/blender/blenkernel/intern/subdiv_stats.c +++ b/source/blender/blenkernel/intern/subdiv_stats.c @@ -56,6 +56,11 @@ void BKE_subdiv_stats_end(SubdivStats *stats, eSubdivStatsValue value) PIL_check_seconds_timer() - stats->begin_timestamp_[value]; } +void BKE_subdiv_stats_reset(SubdivStats *stats, eSubdivStatsValue value) +{ + stats->values_[value] = 0.0; +} + void BKE_subdiv_stats_print(const SubdivStats *stats) { #define STATS_PRINT_TIME(stats, value, description) \ |