diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2009-01-07 07:38:30 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2009-01-07 07:38:30 +0300 |
commit | a811d802dd96a2dc93885a1dab46004084386030 (patch) | |
tree | 42e09725613129f591b0b97f4d06d931bfd89ab6 /source/blender/blenkernel/BKE_brush.h | |
parent | 23e3fdb28b1d0c7d7d8992c2835bd492daef528c (diff) |
Changes/cleanup for sculptdata and brushes. Summary:
* Removed texfade, wasn't a very useful option (same result can be created with the falloff curve)
* Removed CurveMapping from sculptdata, moved instead to Brush
* Removed rake field from sculptdata, moved to Brush.flag
* Moved Anchored flag from sculpt to Brush, same for direction field
* Removed BrushData, replaced usages with the regular Brush type
* Removed hardcoded brushes and brush_type from sculptdata, replaced with a pointer to the current Brush
* Made sculpt tool type settable in Brush
* Changed symmetry and axis lock fields to flags
Diffstat (limited to 'source/blender/blenkernel/BKE_brush.h')
-rw-r--r-- | source/blender/blenkernel/BKE_brush.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_brush.h b/source/blender/blenkernel/BKE_brush.h index 398d203709f..07ca975c46f 100644 --- a/source/blender/blenkernel/BKE_brush.h +++ b/source/blender/blenkernel/BKE_brush.h @@ -51,6 +51,14 @@ int brush_texture_delete(struct Brush *brush); 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); + /* sampling */ float brush_sample_falloff(struct Brush *brush, float dist); float brush_sample_falloff_noalpha(struct Brush *brush, float dist); |