Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2013-03-11 00:05:18 +0400
committerAntony Riakiotakis <kalast@gmail.com>2013-03-11 00:05:18 +0400
commit38feedcaacd2bd317ea68a57014cddb2f9ceaf15 (patch)
tree1cfaa822eaffe581764dbd6898dd265484ffd444 /release
parent5a981db3ecfd63f1d09962141b07d968f28aee60 (diff)
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.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_image.py7
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py21
2 files changed, 24 insertions, 4 deletions
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")