Fix: curve reset for brushes now gives proper smooth curve as default,
[blender-staging.git] / source / blender / blenkernel / BKE_brush.h
index f302618e60d9316a148c6eaa6d57b5b51ebddeef..40e1859ade2457ff2a4d35a283ae76eddf63cba9 100644 (file)
@@ -36,6 +36,7 @@ struct Brush;
 struct ImBuf;
 struct Scene;
 struct wmOperator;
+enum CurveMappingPreset;
 
 /* datablock functions */
 struct Brush *add_brush(const char *name);
@@ -54,12 +55,7 @@ int brush_clone_image_set_nr(struct Brush *brush, int nr);
 int brush_clone_image_delete(struct Brush *brush);
 
 /* brush curve */
-typedef enum {
-       BRUSH_PRESET_SHARP,
-       BRUSH_PRESET_SMOOTH,
-       BRUSH_PRESET_MAX
-} BrushCurvePreset;
-void brush_curve_preset(struct Brush *b, BrushCurvePreset preset);
+void brush_curve_preset(struct Brush *b, enum CurveMappingPreset preset);
 float brush_curve_strength_clamp(struct Brush *br, float p, const float len);
 float brush_curve_strength(struct Brush *br, float p, const float len); /* used for sculpt */