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:
authorPablo Vazquez <pablo@blender.org>2021-10-07 12:44:04 +0300
committerPablo Vazquez <pablo@blender.org>2021-10-07 12:44:29 +0300
commit87a36cba1a5ad9e8e8279e89d104184c8bb84593 (patch)
tree91ff4c10d0332a1da748eaa655dc6685c9ecd9f7 /release/scripts/startup/bl_ui/properties_paint_common.py
parent00bd631c7ccef79462f2904ecfb751d7b34ef91e (diff)
UI: Fix alignment of buttons in Grease Pencil tool settings
Small fix reviewed on blender.chat by the Grease Pencil team.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_paint_common.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_paint_common.py3
1 files changed, 2 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 c038f5f906a..14aacf3a47a 100644
--- a/release/scripts/startup/bl_ui/properties_paint_common.py
+++ b/release/scripts/startup/bl_ui/properties_paint_common.py
@@ -1151,7 +1151,8 @@ def brush_basic__draw_color_selector(context, layout, brush, gp_settings, props)
if len(txt_ma) > maxw:
txt_ma = txt_ma[:maxw - 5] + '..' + txt_ma[-3:]
- sub = row.row()
+ sub = row.row(align=True)
+ sub.enabled = not gp_settings.use_material_pin
sub.ui_units_x = 8
sub.popover(
panel="TOPBAR_PT_gpencil_materials",