[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [59836] trunk/blender/release/scripts/ startup/bl_ui: Tidy up paint options, patch by Sebastian Koenig, with minor changes
Antony Riakiotakis
kalast at gmail.com
Thu Sep 5 15:15:30 CEST 2013
Revision: 59836
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59836
Author: psy-fi
Date: 2013-09-05 13:15:29 +0000 (Thu, 05 Sep 2013)
Log Message:
-----------
Tidy up paint options, patch by Sebastian Koenig, with minor changes
(ommit texture paint changes, they made the interface more difficult to
discern).
Also, move stroke input samples to stroke panel
Modified Paths:
--------------
trunk/blender/release/scripts/startup/bl_ui/properties_paint_common.py
trunk/blender/release/scripts/startup/bl_ui/space_view3d_toolbar.py
Modified: trunk/blender/release/scripts/startup/bl_ui/properties_paint_common.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_paint_common.py 2013-09-05 13:03:03 UTC (rev 59835)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_paint_common.py 2013-09-05 13:15:29 UTC (rev 59836)
@@ -45,8 +45,9 @@
def unified_paint_settings(parent, context):
ups = context.tool_settings.unified_paint_settings
parent.label(text="Unified Settings:")
- parent.prop(ups, "use_unified_size", text="Size")
- parent.prop(ups, "use_unified_strength", text="Strength")
+ row = parent.row()
+ row.prop(ups, "use_unified_size", text="Size")
+ row.prop(ups, "use_unified_strength", text="Strength")
if context.weight_paint_object:
parent.prop(ups, "use_unified_weight", text="Weight")
Modified: trunk/blender/release/scripts/startup/bl_ui/space_view3d_toolbar.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_view3d_toolbar.py 2013-09-05 13:03:03 UTC (rev 59835)
+++ trunk/blender/release/scripts/startup/bl_ui/space_view3d_toolbar.py 2013-09-05 13:15:29 UTC (rev 59836)
@@ -913,6 +913,7 @@
row.prop(brush, "use_relative_jitter", text="", icon='UNLOCKED')
row.prop(brush, "jitter_absolute")
row.prop(brush, "use_pressure_jitter", toggle=True, text="")
+
if brush.sculpt_capabilities.has_smooth_stroke:
col = layout.column()
col.separator()
@@ -944,8 +945,11 @@
sub.active = brush.use_smooth_stroke
sub.prop(brush, "smooth_stroke_radius", text="Radius", slider=True)
sub.prop(brush, "smooth_stroke_factor", text="Factor", slider=True)
+
+ layout.prop(settings, "input_samples")
+
class VIEW3D_PT_tools_brush_curve(Panel, View3DPaintPanel):
bl_label = "Curve"
bl_options = {'DEFAULT_CLOSED'}
@@ -1028,8 +1032,6 @@
layout.prop(sculpt, "use_deform_only")
layout.prop(sculpt, "show_diffuse_color")
- layout.prop(sculpt, "input_samples")
-
self.unified_paint_settings(layout, context)
@@ -1136,11 +1138,14 @@
wpaint = tool_settings.weight_paint
col = layout.column()
+ row = col.row()
- col.prop(wpaint, "use_all_faces")
- col.prop(wpaint, "use_normal")
- col.prop(wpaint, "use_spray")
- col.prop(wpaint, "use_group_restrict")
+ row.prop(wpaint, "use_all_faces")
+ row.prop(wpaint, "use_normal")
+ col = layout.column()
+ row = col.row()
+ row.prop(wpaint, "use_spray")
+ row.prop(wpaint, "use_group_restrict")
obj = context.weight_paint_object
if obj.type == 'MESH':
@@ -1150,8 +1155,6 @@
row.active = mesh.use_mirror_x
row.prop(mesh, "use_mirror_topology")
- col.prop(wpaint, "input_samples")
-
col.label("Show Zero Weights:")
sub = col.row()
sub.active = (not tool_settings.use_multipaint)
@@ -1173,13 +1176,12 @@
vpaint = toolsettings.vertex_paint
col = layout.column()
+ row = col.row()
#col.prop(vpaint, "mode", text="")
- col.prop(vpaint, "use_all_faces")
- col.prop(vpaint, "use_normal")
+ row.prop(vpaint, "use_all_faces")
+ row.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
@@ -1209,15 +1211,13 @@
ipaint = toolsettings.image_paint
settings = toolsettings.image_paint
- layout.prop(ipaint, "input_samples")
-
col = layout.column()
col.prop(ipaint, "use_occlude")
col.prop(ipaint, "use_backface_culling")
row = layout.row()
row.prop(ipaint, "use_normal_falloff")
-
+
sub = row.row()
sub.active = (ipaint.use_normal_falloff)
sub.prop(ipaint, "normal_angle", text="")
More information about the Bf-blender-cvs
mailing list