diff options
author | William Reynish <billrey@me.com> | 2019-08-19 14:28:09 +0300 |
---|---|---|
committer | William Reynish <billrey@me.com> | 2019-08-19 15:25:55 +0300 |
commit | ce5477d99392ce412dc0e669a5d9bf163a944d96 (patch) | |
tree | 2d896a2195fa2cd132e5c70869a201348eb051df /release/scripts | |
parent | ca3f25fc6489ee0faec3a2e18bd4d1aa17642021 (diff) |
Fix T68802: Paint brush's Fill Threshold option is lost
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_paint_common.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/release/scripts/startup/bl_ui/properties_paint_common.py b/release/scripts/startup/bl_ui/properties_paint_common.py index 9e1a642d891..23b2556eddb 100644 --- a/release/scripts/startup/bl_ui/properties_paint_common.py +++ b/release/scripts/startup/bl_ui/properties_paint_common.py @@ -113,10 +113,8 @@ def brush_texpaint_common(panel, context, layout, brush, _settings, projpaint=Fa col = layout.column() - if capabilities.has_color: - if brush.blend in {'ERASE_ALPHA', 'ADD_ALPHA'}: - if brush.image_tool == 'FILL' and not projpaint: - col.prop(brush, "fill_threshold") + if brush.image_tool == 'FILL' and not projpaint: + col.prop(brush, "fill_threshold", text="Gradient Type", slider=True) elif brush.image_tool == 'SOFTEN': col.row().prop(brush, "direction", expand=True) @@ -183,7 +181,7 @@ def brush_texpaint_common_gradient(_panel, context, layout, brush, _settings, pr if brush.image_tool == 'DRAW': UnifiedPaintPanel.prop_unified_color(col, context, brush, "secondary_color", text="Background Color") - col.prop(brush, "gradient_stroke_mode", text="Mode") + col.prop(brush, "gradient_stroke_mode", text="Gradient Mapping") if brush.gradient_stroke_mode in {'SPACING_REPEAT', 'SPACING_CLAMP'}: col.prop(brush, "grad_spacing") else: # if brush.image_tool == 'FILL': |