[Bf-blender-cvs] [046fe55e639] master: Fix T85869: GPencill Fill tool panel was not aligned as expected
Antonio Vazquez
noreply at git.blender.org
Mon Feb 22 16:05:16 CET 2021
Commit: 046fe55e6390bbcbb946f4d1f07ab1f295cd8fb0
Author: Antonio Vazquez
Date: Mon Feb 22 16:05:03 2021 +0100
Branches: master
https://developer.blender.org/rB046fe55e6390bbcbb946f4d1f07ab1f295cd8fb0
Fix T85869: GPencill Fill tool panel was not aligned as expected
The direction of the brush was displayed vertically.
===================================================================
M release/scripts/startup/bl_ui/properties_paint_common.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_paint_common.py b/release/scripts/startup/bl_ui/properties_paint_common.py
index 54c6de30ef8..f40c947fac9 100644
--- a/release/scripts/startup/bl_ui/properties_paint_common.py
+++ b/release/scripts/startup/bl_ui/properties_paint_common.py
@@ -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)
More information about the Bf-blender-cvs
mailing list