From 43bd8c2b28d06953b64ed6d1e72cead9e42463a0 Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Mon, 16 Sep 2013 02:24:41 +0000 Subject: Undo the front-facing only commit for clay strips brushes, it adds an attenuation that should really be optional. There's also a minor performance penalty and all this only for one problematic case. In case the tool flattens two surfaces, users can manually set the front face only option. A better non-attenuating way to cull such vertices can be added later. Also flatten brush should calculate the flatten plane from the original vertices or the flattening will not converge for planes offsets different than zero. Reported by Michalis Zissiou, thanks! --- source/blender/blenkernel/intern/brush.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'source/blender/blenkernel/intern/brush.c') diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c index 7864216f39e..790c1f09ff0 100644 --- a/source/blender/blenkernel/intern/brush.c +++ b/source/blender/blenkernel/intern/brush.c @@ -1048,8 +1048,3 @@ 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