From 38feedcaacd2bd317ea68a57014cddb2f9ceaf15 Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Sun, 10 Mar 2013 20:05:18 +0000 Subject: Feature request for all paint systems that support it: Jittering in absolute coordinates. This allows an artist to lower the brush radius while keeping the spread of the brush constant. A toggle under the jitter slider provides the option to switch between relative/absolute. --- release/scripts/startup/bl_ui/space_image.py | 7 ++++++- .../scripts/startup/bl_ui/space_view3d_toolbar.py | 21 ++++++++++++++++++--- 2 files changed, 24 insertions(+), 4 deletions(-) (limited to 'release') diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py index 01b67667cfb..6a8054dd5d6 100644 --- a/release/scripts/startup/bl_ui/space_image.py +++ b/release/scripts/startup/bl_ui/space_image.py @@ -698,8 +698,13 @@ class IMAGE_PT_paint(Panel, ImagePaintPanel): self.prop_unified_strength(row, context, brush, "use_pressure_strength") row = col.row(align=True) - row.prop(brush, "jitter", slider=True) + if(brush.use_absolute_jitter): + row.prop(brush, "jitter_absolute", slider=True) + else: + row.prop(brush, "jitter", slider=True) row.prop(brush, "use_pressure_jitter", toggle=True, text="") + + col.prop(brush, "use_absolute_jitter") col.prop(brush, "blend", text="Blend") diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index 56ed53c4e12..24a216fe020 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -678,8 +678,13 @@ class VIEW3D_PT_tools_brush(Panel, View3DPaintPanel): self.prop_unified_strength(row, context, brush, "use_pressure_strength") row = col.row(align=True) - row.prop(brush, "jitter", slider=True) + if(brush.use_absolute_jitter): + row.prop(brush, "jitter_absolute") + else: + row.prop(brush, "jitter", slider=True) row.prop(brush, "use_pressure_jitter", toggle=True, text="") + + col.prop(brush, "use_absolute_jitter") col.prop(brush, "blend", text="Blend") @@ -706,8 +711,13 @@ class VIEW3D_PT_tools_brush(Panel, View3DPaintPanel): self.prop_unified_strength(row, context, brush, "use_pressure_strength") row = col.row(align=True) - row.prop(brush, "jitter", slider=True) + if(brush.use_absolute_jitter): + row.prop(brush, "jitter_absolute") + else: + row.prop(brush, "jitter", slider=True) row.prop(brush, "use_pressure_jitter", toggle=True, text="") + + col.prop(brush, "use_absolute_jitter") col.prop(brush, "vertex_tool", text="Blend") @@ -828,8 +838,13 @@ class VIEW3D_PT_tools_brush_stroke(Panel, View3DPaintPanel): col.separator() row = col.row(align=True) - row.prop(brush, "jitter", slider=True) + if(brush.use_absolute_jitter): + row.prop(brush, "jitter_absolute") + else: + row.prop(brush, "jitter", slider=True) row.prop(brush, "use_pressure_jitter", toggle=True, text="") + + col.prop(brush, "use_absolute_jitter") else: col.prop(brush, "use_airbrush") -- cgit v1.2.3