Add input sample averaging to PaintStroke.
authorNicholas Bishop <nicholasbishop@gmail.com>
Mon, 21 May 2012 23:32:46 +0000 (23:32 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Mon, 21 May 2012 23:32:46 +0000 (23:32 +0000)
commit5f95f7d2adb25ef7b821ec08f7f627664152d0b4
treeb8c09433c0e386f161d3937aaa0c253e20b1b7a1
parentb951c2be7f26caea266e3a27d9701b0374bdcad5
Add input sample averaging to PaintStroke.

Averages input samples to make the brush stroke smoother. Only mouse
location is averaged right now, not pressure/tilt/etc.

The DNA is in struct Paint.num_input_samples, RNA is
Paint.input_samples. In combination with PaintStroke usage this change
applies to sculpt, vpaint, and wpaint.

The range of useful values varies quite a bit depending on input
device; mouse needs higher values to match tablet pen, so set max
samples pretty high (64).

Release note section:
http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.64/Sculpting#Input_Stroke_Averaging
release/scripts/startup/bl_ui/space_view3d_toolbar.py
source/blender/blenloader/intern/readfile.c
source/blender/editors/sculpt_paint/paint_intern.h
source/blender/editors/sculpt_paint/paint_stroke.c
source/blender/editors/sculpt_paint/paint_vertex.c
source/blender/editors/sculpt_paint/sculpt.c
source/blender/makesdna/DNA_scene_types.h
source/blender/makesrna/intern/rna_sculpt_paint.c