diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2013-09-14 03:58:00 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2013-09-14 03:58:00 +0400 |
commit | b1179c4752395b5b3247e5a22587f4b65e45d72d (patch) | |
tree | fba66b5fa5940f8f7c9777c33548de4f3cf30f33 /source/blender/blenkernel | |
parent | 8f3a40830d6679c8ad3d1c5ecc60bf8f49a21ec0 (diff) |
Sculpting:
* Cleanup for previous commit and reduce some local variable referencing
* Add support for brushes that operate on frontfaces only and do not
show the option for those brushes. Currently only clay strips is in the
list but this may change according to artist feedback. This should take
care of the "sticky" surface problem completely.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/BKE_brush.h | 3 | ||||
-rw-r--r-- | source/blender/blenkernel/BKE_paint.h | 1 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/brush.c | 5 |
3 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_brush.h b/source/blender/blenkernel/BKE_brush.h index b4c5f47cf25..ea2aa9c8bd3 100644 --- a/source/blender/blenkernel/BKE_brush.h +++ b/source/blender/blenkernel/BKE_brush.h @@ -111,5 +111,8 @@ void BKE_brush_scale_size(int *BKE_brush_size_get, /* debugging only */ void BKE_brush_debug_print_state(struct Brush *br); +/* sculpt */ +bool BKE_sculpt_brush_frontface_only(struct Brush *); + #endif diff --git a/source/blender/blenkernel/BKE_paint.h b/source/blender/blenkernel/BKE_paint.h index 2baa8b78e47..1d81dfefe65 100644 --- a/source/blender/blenkernel/BKE_paint.h +++ b/source/blender/blenkernel/BKE_paint.h @@ -173,5 +173,4 @@ void free_sculptsession(struct Object *ob); void free_sculptsession_deformMats(struct SculptSession *ss); void sculptsession_bm_to_me(struct Object *ob, int reorder); void sculptsession_bm_to_me_for_render(struct Object *object); - #endif diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c index 790c1f09ff0..0c79b8860d9 100644 --- a/source/blender/blenkernel/intern/brush.c +++ b/source/blender/blenkernel/intern/brush.c @@ -1048,3 +1048,8 @@ struct ImBuf *BKE_brush_gen_radial_control_imbuf(Brush *br, bool secondary) return im; } + +bool BKE_sculpt_brush_frontface_only(struct Brush *br) +{ + return br->sculpt_tool != SCULPT_TOOL_CLAY_STRIPS; +} |