From 29f90af19cb5e8284f95d25e3f9c9519c588c742 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 4 Jan 2010 17:28:37 +0000 Subject: Fix: curve reset for brushes now gives proper smooth curve as default, also moved brush curve presets code into curvemapping code. --- source/blender/blenkernel/BKE_brush.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'source/blender/blenkernel/BKE_brush.h') diff --git a/source/blender/blenkernel/BKE_brush.h b/source/blender/blenkernel/BKE_brush.h index f302618e60d..40e1859ade2 100644 --- a/source/blender/blenkernel/BKE_brush.h +++ b/source/blender/blenkernel/BKE_brush.h @@ -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 */ -- cgit v1.2.3