diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-10-22 06:09:41 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-10-22 06:09:41 +0400 |
commit | 2342209c95af153cc4c250e943a95835217db0af (patch) | |
tree | 707d11528f556883d275518cfb24d1ee27425be9 /source/blender/modifiers/intern/MOD_decimate.c | |
parent | 39ed660bc64a216489fee25a2a009296c66ca379 (diff) |
enable bmesh decimator by default.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_decimate.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_decimate.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/source/blender/modifiers/intern/MOD_decimate.c b/source/blender/modifiers/intern/MOD_decimate.c index fefb3838edd..54c31148405 100644 --- a/source/blender/modifiers/intern/MOD_decimate.c +++ b/source/blender/modifiers/intern/MOD_decimate.c @@ -49,10 +49,13 @@ #include "BKE_tessmesh.h" -/* testing only! - Campbell */ -// #define USE_DECIMATE_BMESH -#include "PIL_time.h" +// #define USE_TIMEIT +/* testing only! - Campbell */ +#define USE_DECIMATE_BMESH +#ifdef USE_TIMEIT +# include "PIL_time.h" +#endif #ifdef WITH_MOD_DECIMATE #include "LOD_decimation.h" @@ -89,7 +92,9 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *UNUSED(ob), BMEditMesh *em; BMesh *bm; +#ifdef USE_TIMEIT TIMEIT_START(decim); +#endif if (dmd->percent == 1.0f) { return dm; @@ -111,7 +116,9 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *UNUSED(ob), BMEdit_Free(em); MEM_freeN(em); +#ifdef USE_TIMEIT TIMEIT_END(decim); +#endif return result; } |