From 7eda267df1a997c1525a0aa62ad2de2f1b77c6e5 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 16 Jan 2019 10:15:25 +0100 Subject: Subdiv: Reset evaluator creation statistics Makes it more clear to see what was exactly happening at the last invocation of subsurf modifier. --- source/blender/blenkernel/intern/subdiv_stats.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/blenkernel/intern/subdiv_stats.c') 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) \ -- cgit v1.2.3