From 5f95f7d2adb25ef7b821ec08f7f627664152d0b4 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Mon, 21 May 2012 23:32:46 +0000 Subject: 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 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'release/scripts') diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index d3a8427aa16..a1f616cc237 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -873,6 +873,8 @@ class VIEW3D_PT_sculpt_options(Panel, View3DPaintPanel): layout.prop(sculpt, "show_brush") layout.prop(sculpt, "use_deform_only") + layout.prop(sculpt, "input_samples") + self.unified_paint_settings(layout, context) @@ -984,6 +986,8 @@ class VIEW3D_PT_tools_weightpaint_options(Panel, View3DPaintPanel): col.prop(mesh, "use_mirror_x") col.prop(mesh, "use_mirror_topology") + col.prop(wpaint, "input_samples") + self.unified_paint_settings(col, context) # Commented out because the Apply button isn't an operator yet, making these settings useless @@ -1014,6 +1018,8 @@ class VIEW3D_PT_tools_vertexpaint(Panel, View3DPaintPanel): col.prop(vpaint, "use_normal") col.prop(vpaint, "use_spray") + col.prop(vpaint, "input_samples") + self.unified_paint_settings(col, context) # Commented out because the Apply button isn't an operator yet, making these settings useless -- cgit v1.2.3