diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2019-11-27 04:02:18 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2019-11-27 19:17:46 +0300 |
commit | 9251b077203c763f1be83505ed0a4d1e19dab947 (patch) | |
tree | 1386056411e0a98e7ab0c116f6df6df515b34dda /release | |
parent | 0e4014ef9215ffe38108b7596a29bd3c5c41bbd1 (diff) |
Sculpt/Paint: Remove Unified SIZE_PRESSURE and ALPHA_PRESSURE
The relation between the pressure/size and the pressure/alpha is a
fundamental property that defines the behavior of a brush, so it does
not make sense to have it unified across all brushes. This applies both
for sculpting and painting.
Some of the new 2.82 brushes need pressure/size or pressure/alpha to be
enabled to work propely, while others don't. Users should not be
switching on and off this property manually when changing brushes if they
want to use unified size. This is also causing that some users are using
the brushes with an incorrect configuration.
Reviewed By: jbakker
Differential Revision: https://developer.blender.org/D6291
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_paint_common.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/release/scripts/startup/bl_ui/properties_paint_common.py b/release/scripts/startup/bl_ui/properties_paint_common.py index 98e812cf02d..7c28095259e 100644 --- a/release/scripts/startup/bl_ui/properties_paint_common.py +++ b/release/scripts/startup/bl_ui/properties_paint_common.py @@ -296,11 +296,11 @@ def brush_basic_wpaint_settings(layout, context, brush, *, compact=False): row = layout.row(align=True) UnifiedPaintPanel.prop_unified_size(row, context, brush, "size", slider=True) - UnifiedPaintPanel.prop_unified_size(row, context, brush, "use_pressure_size", text="") + row.prop(brush, "use_pressure_size", text="") row = layout.row(align=True) UnifiedPaintPanel.prop_unified_strength(row, context, brush, "strength") - UnifiedPaintPanel.prop_unified_strength(row, context, brush, "use_pressure_strength", text="") + row.prop(brush, "use_pressure_strength", text="") layout.prop(brush, "blend", text="" if compact else "Blend") @@ -310,11 +310,11 @@ def brush_basic_vpaint_settings(layout, context, brush, *, compact=False): row = layout.row(align=True) UnifiedPaintPanel.prop_unified_size(row, context, brush, "size", slider=True) - UnifiedPaintPanel.prop_unified_size(row, context, brush, "use_pressure_size", text="") + row.prop(brush, "use_pressure_size", text="") row = layout.row(align=True) UnifiedPaintPanel.prop_unified_strength(row, context, brush, "strength") - UnifiedPaintPanel.prop_unified_strength(row, context, brush, "use_pressure_strength", text="") + row.prop(brush, "use_pressure_strength", text="") if capabilities.has_color: layout.prop(brush, "blend", text="" if compact else "Blend") @@ -326,12 +326,12 @@ def brush_basic_texpaint_settings(layout, context, brush, *, compact=False): if capabilities.has_radius: row = layout.row(align=True) UnifiedPaintPanel.prop_unified_size(row, context, brush, "size", slider=True) - UnifiedPaintPanel.prop_unified_size(row, context, brush, "use_pressure_size", text="") + row.prop(brush, "use_pressure_size", text="") row = layout.row(align=True) UnifiedPaintPanel.prop_unified_strength(row, context, brush, "strength") - UnifiedPaintPanel.prop_unified_strength(row, context, brush, "use_pressure_strength", text="") + row.prop(brush, "use_pressure_strength", text="") if capabilities.has_color: layout.prop(brush, "blend", text="" if compact else "Blend") @@ -352,7 +352,7 @@ def brush_basic_sculpt_settings(layout, context, brush, *, compact=False): else: UnifiedPaintPanel.prop_unified_size(row, context, brush, "size", slider=True) - UnifiedPaintPanel.prop_unified_size(row, context, brush, "use_pressure_size", text="") + row.prop(brush, "use_pressure_size", text="") # strength, use_strength_pressure, and use_strength_attenuation row = layout.row(align=True) @@ -360,7 +360,7 @@ def brush_basic_sculpt_settings(layout, context, brush, *, compact=False): UnifiedPaintPanel.prop_unified_strength(row, context, brush, "strength") if capabilities.has_strength_pressure: - UnifiedPaintPanel.prop_unified_strength(row, context, brush, "use_pressure_strength", text="") + row.prop(brush, "use_pressure_strength", text="") # direction if not capabilities.has_direction: |