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>2019-01-15 03:03:33 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-01-15 03:06:36 +0300
commit07541052a03740f358127b890197517433eb6d8d (patch)
tree98a9454e3e0ced32d31eedc7043a118a7274eea9 /release
parent62ac0996e76cf0ea1ceec3316b38dca98d0c4f6e (diff)
Fix T60512: Weight paint brushes show weight when unused
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_paint_common.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_paint_common.py b/release/scripts/startup/bl_ui/properties_paint_common.py
index ec12aa6c99f..2a249a475bc 100644
--- a/release/scripts/startup/bl_ui/properties_paint_common.py
+++ b/release/scripts/startup/bl_ui/properties_paint_common.py
@@ -302,8 +302,11 @@ def brush_mask_texture_settings(layout, brush):
# Share between topbar and brush panel.
def brush_basic_wpaint_settings(layout, context, brush, *, compact=False):
- row = layout.row(align=True)
- UnifiedPaintPanel.prop_unified_weight(row, context, brush, "weight", slider=True, text="Weight")
+ capabilities = brush.weight_paint_capabilities
+
+ if capabilities.has_weight:
+ row = layout.row(align=True)
+ UnifiedPaintPanel.prop_unified_weight(row, context, brush, "weight", slider=True, text="Weight")
row = layout.row(align=True)
UnifiedPaintPanel.prop_unified_size(row, context, brush, "size", slider=True, text="Radius")