diff options
author | Sebastian Parborg <darkdefende@gmail.com> | 2022-01-17 18:48:18 +0300 |
---|---|---|
committer | Sebastian Parborg <darkdefende@gmail.com> | 2022-01-17 18:50:20 +0300 |
commit | a25cfc5db2625d147c4f2d89584e6d87748a47bb (patch) | |
tree | 9c12610825ac7a5b20c0aaef4540e5df331ee147 /release | |
parent | be8f10a4e2172eb686863998d1a8df904463ab21 (diff) |
Texture/Vertex Paint: Add secondary color to the tool header
Before we would only display the secondary color in the N-panel.
Now we also display it in the tool header.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_paint_common.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_paint_common.py b/release/scripts/startup/bl_ui/properties_paint_common.py index 49effabc5cf..347f771d1f6 100644 --- a/release/scripts/startup/bl_ui/properties_paint_common.py +++ b/release/scripts/startup/bl_ui/properties_paint_common.py @@ -1107,7 +1107,11 @@ def brush_basic_texpaint_settings(layout, context, brush, *, compact=False): capabilities = brush.image_paint_capabilities if capabilities.has_color: - UnifiedPaintPanel.prop_unified_color(layout, context, brush, "color", text="") + row = layout.row(align=True) + row.ui_units_x = 4 + UnifiedPaintPanel.prop_unified_color(row, context, brush, "color", text="") + UnifiedPaintPanel.prop_unified_color(row, context, brush, "secondary_color", text="") + row.separator() layout.prop(brush, "blend", text="" if compact else "Blend") UnifiedPaintPanel.prop_unified( |