UI: Fix alignment of buttons in Grease Pencil tool settings

Small fix reviewed on blender.chat by the Grease Pencil team.
This commit is contained in:
Pablo Vazquez 2021-10-07 11:44:04 +02:00
parent 00bd631c7c
commit 87a36cba1a
1 changed files with 2 additions and 1 deletions

View File

@ -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",