prop = RNA_def_property(srna, "ratio", PROP_FLOAT, PROP_NONE);
RNA_def_property_float_sdna(prop, NULL, "percent");
RNA_def_property_range(prop, 0, 1);
- RNA_def_property_ui_range(prop, 0, 1, 1, 2);
+ RNA_def_property_ui_range(prop, 0, 1, 1, 4);
RNA_def_property_ui_text(prop, "Ratio", "Ratio of triangles to reduce to");
RNA_def_property_update(prop, 0, "rna_Modifier_update");
#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"
BMEditMesh *em;
BMesh *bm;
+#ifdef USE_TIMEIT
TIMEIT_START(decim);
+#endif
if (dmd->percent == 1.0f) {
return dm;
BMEdit_Free(em);
MEM_freeN(em);
+#ifdef USE_TIMEIT
TIMEIT_END(decim);
+#endif
return result;
}