diff options
author | Mateusz Grzeliński <grzelinskimat@gmail.com> | 2020-08-04 15:04:52 +0300 |
---|---|---|
committer | Mateusz Grzeliński <grzelinskimat@gmail.com> | 2020-08-04 15:04:52 +0300 |
commit | cb6164000e80f11960cd2eef3b890e8bd2355520 (patch) | |
tree | ae5d5813243fbab8fdf8324cfa042143180132af /source/blender/modifiers/intern/MOD_decimate.c | |
parent | 6eade7afa1779e701b02ae19815c02fdd89d1ae3 (diff) |
Simplify clog time function family
macros are no longer dependent on DEBUG
Diffstat (limited to 'source/blender/modifiers/intern/MOD_decimate.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_decimate.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/source/blender/modifiers/intern/MOD_decimate.c b/source/blender/modifiers/intern/MOD_decimate.c index 4f0577618e9..44a6527417f 100644 --- a/source/blender/modifiers/intern/MOD_decimate.c +++ b/source/blender/modifiers/intern/MOD_decimate.c @@ -50,15 +50,16 @@ #include "bmesh.h" #include "bmesh_tools.h" -#include "PIL_time.h" - #include "MOD_ui_common.h" #include "MOD_util.h" // #define CLOG_DO_TIMEIT -#include "PIL_time_utildefines.h" +#ifdef CLOG_DO_TIMEIT +# include "PIL_time.h" +# include "PIL_time_utildefines.h" static CLG_LogRef LOG = {"mod.decimate"}; +#endif // CLOG_DO_TIMEIT static void initData(ModifierData *md) { @@ -109,7 +110,9 @@ static Mesh *modifyMesh(ModifierData *md, const ModifierEvalContext *ctx, Mesh * bool calc_face_normal; float *vweights = NULL; +#ifdef CLOG_DO_TIMEIT CLOG_TIMEIT_START(&LOG, 1, decim); +#endif /* set up front so we dont show invalid info in the UI */ updateFaceCount(ctx, dmd, mesh->totpoly); @@ -216,7 +219,9 @@ static Mesh *modifyMesh(ModifierData *md, const ModifierEvalContext *ctx, Mesh * BM_mesh_free(bm); +#ifdef CLOG_DO_TIMEIT CLOG_TIMEIT_END(&LOG, 1, decim); +#endif result->runtime.cd_dirty_vert |= CD_MASK_NORMAL; |