Fix T85869: GPencill Fill tool panel was not aligned as expected

The direction of the brush was displayed vertically.
This commit is contained in:
Antonio Vazquez 2021-02-22 16:05:03 +01:00
parent 6cd8c33d00
commit 046fe55e63
Notes: blender-bot 2023-02-14 11:21:43 +01:00
Referenced by issue #85869, Greasepencil in Draw mode with Fill tool. Direction button combo in Brush settings is vertical aligned
1 changed files with 10 additions and 2 deletions

View File

@ -1215,14 +1215,22 @@ def brush_basic_gpencil_paint_settings(layout, context, brush, *, compact=False)
# FIXME: tools must use their own UI drawing!
elif brush.gpencil_tool == 'FILL':
row = layout.row(align=True)
row.prop(gp_settings, "fill_direction", text="", expand=True)
use_property_split_prev = layout.use_property_split
if compact:
row = layout.row(align=True)
row.prop(gp_settings, "fill_direction", text="", expand=True)
else:
layout.use_property_split = False
row = layout.row(align=True)
row.prop(gp_settings, "fill_direction", expand=True)
row = layout.row(align=True)
row.prop(gp_settings, "fill_factor")
row = layout.row(align=True)
row.prop(gp_settings, "fill_leak", text="Leak Size")
row = layout.row(align=True)
row.prop(brush, "size", text="Thickness")
layout.use_property_split = use_property_split_prev
else: # brush.gpencil_tool == 'DRAW/TINT':
row = layout.row(align=True)