Fix T45013 negative curve falloff not working.
authorAntony Riakiotakis <kalast@gmail.com>
Wed, 10 Jun 2015 11:32:11 +0000 (13:32 +0200)
committerAntony Riakiotakis <kalast@gmail.com>
Wed, 10 Jun 2015 11:32:28 +0000 (13:32 +0200)
commit9f911f62dcefd3ce4312bb8aa1d522cae6bbf6e9
tree15729122676546f1b41a7b20f2255222d67ca7b9
parent6e844da9dad5bcbc1fb747879fa2a11715223d84
Fix T45013 negative curve falloff not working.

Was doing clamping as fix for T42984. Seems we can ommit clamping for
sculpting if we make sure overlap is not zero with negative values.

Control for clamping is moved to the "Use Clipping" function of curves
(which is on by default), so both bugs remain squashed and advanced
users can now properly utilize curves in sculpting, though not all
brushes work well with negative curves.
source/blender/blenkernel/BKE_brush.h
source/blender/blenkernel/intern/brush.c
source/blender/blenkernel/intern/colortools.c
source/blender/editors/sculpt_paint/paint_cursor.c
source/blender/editors/sculpt_paint/paint_image_2d.c
source/blender/editors/sculpt_paint/paint_image_proj.c
source/blender/editors/sculpt_paint/paint_stroke.c
source/blender/editors/sculpt_paint/paint_vertex.c
source/blender/editors/sculpt_paint/sculpt_uv.c