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:
authorCampbell Barton <ideasman42@gmail.com>2017-10-06 10:57:37 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-10-06 10:57:37 +0300
commit8ef757df3d2ab5867f2361908e524a7de0f4489e (patch)
treed87c6d05834691dfc75387c8b4393598c5374a0b /release
parent082987ec74c3fd8e6a4acba098882041694b86c2 (diff)
Vertex Paint: use brush front-face setting
Follow sculpt mode more closely by using the brush front-face option.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py28
1 files changed, 12 insertions, 16 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index d795e09e435..62e88e47e20 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -1080,10 +1080,8 @@ class VIEW3D_PT_tools_brush(Panel, View3DPaintPanel):
# use_frontface
col.separator()
- row = col.row()
- row.prop(brush, "use_frontface", text="Front Faces Only")
-
- col.row().prop(brush, "use_projected", expand=True)
+ col.prop(brush, "use_frontface", text="Front Faces Only")
+ col.prop(brush, "use_projected")
# direction
col.separator()
@@ -1133,13 +1131,15 @@ class VIEW3D_PT_tools_brush(Panel, View3DPaintPanel):
self.prop_unified_strength(row, context, brush, "strength", text="Strength")
self.prop_unified_strength(row, context, brush, "use_pressure_strength")
+ col.separator()
col.prop(brush, "vertex_tool", text="Blend")
if brush.vertex_tool != 'SMEAR':
col.prop(brush, "use_accumulate")
col.separator()
- col.row().prop(brush, "use_projected")
+ col.prop(brush, "use_frontface", text="Front Faces Only")
+ col.prop(brush, "use_projected")
col = layout.column()
col.prop(toolsettings, "use_auto_normalize", text="Auto Normalize")
@@ -1166,17 +1166,16 @@ class VIEW3D_PT_tools_brush(Panel, View3DPaintPanel):
self.prop_unified_strength(row, context, brush, "strength", text="Strength")
self.prop_unified_strength(row, context, brush, "use_pressure_strength")
- # XXX - TODO
- # row = col.row(align=True)
- # row.prop(brush, "jitter", slider=True)
- # row.prop(brush, "use_pressure_jitter", toggle=True, text="")
col.separator()
col.prop(brush, "vertex_tool", text="Blend")
-
- col.prop(brush, "use_accumulate")
col.prop(brush, "use_alpha")
- col.row().prop("use_projected")
+ if brush.vertex_tool != 'SMEAR':
+ col.prop(brush, "use_accumulate")
+ col.separator()
+
+ col.prop(brush, "use_frontface", text="Front Faces Only")
+ col.prop(brush, "use_projected")
col.separator()
col.template_ID(settings, "palette", new="palette.new")
@@ -1769,8 +1768,7 @@ class VIEW3D_PT_tools_weightpaint_options(Panel, View3DPaintPanel):
col = layout.column()
col.label("Falloff:")
- row = col.row()
- row.prop(wpaint, "use_backface_culling")
+
row = col.row()
row.prop(wpaint, "use_normal_falloff")
sub = row.row()
@@ -1811,8 +1809,6 @@ class VIEW3D_PT_tools_vertexpaint(Panel, View3DPaintPanel):
col = layout.column()
col.label("Falloff:")
row = col.row()
- row.prop(vpaint, "use_backface_culling")
- row = col.row()
row.prop(vpaint, "use_normal_falloff")
sub = row.row()
sub.active = (vpaint.use_normal_falloff)