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/intern/brush.c | |
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/intern/brush.c')
-rw-r--r-- | source/blender/blenkernel/intern/brush.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; +} |