From b1179c4752395b5b3247e5a22587f4b65e45d72d Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Fri, 13 Sep 2013 23:58:00 +0000 Subject: 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. --- source/blender/blenkernel/intern/brush.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/blenkernel/intern') 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; +} -- cgit v1.2.3