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:
authorAntonio Vazquez <blendergit@gmail.com>2020-08-05 19:25:43 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-08-05 19:25:58 +0300
commit9e644b98a6f7645e350b9c1f75ad0721258801ad (patch)
tree2f04620e8ed12741fe62559a984294f00d976d1a /release/scripts/startup/bl_ui/space_view3d_toolbar.py
parente03d53874dac5fc24120dfad496ef008c5244b84 (diff)
GPencil: Reorganize Advanced Brush panel
The Ignore Transparent Strokes and the Factor are related, so it's better disable factor if the checkbox is disabled.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d_toolbar.py')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index febcbd02db6..1b8869d0bc8 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -1375,6 +1375,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_advanced(View3DPanel, Panel):
bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_brush_settings'
bl_category = "Tool"
bl_options = {'DEFAULT_CLOSED'}
+ bl_ui_units_x = 12
@classmethod
def poll(cls, context):
@@ -1432,8 +1433,14 @@ class VIEW3D_PT_tools_grease_pencil_brush_advanced(View3DPanel, Panel):
col.separator()
col.prop(gp_settings, "fill_factor", text="Resolution")
if gp_settings.fill_draw_mode != 'STROKE':
- col.prop(gp_settings, "show_fill", text="Ignore Transparent Strokes")
- col.prop(gp_settings, "fill_threshold", text="Threshold")
+ col = layout.column(align=False, heading="Ignore Transparent")
+ col.use_property_decorate = False
+ row = col.row(align=True)
+ sub = row.row(align=True)
+ sub.prop(gp_settings, "show_fill", text="")
+ sub = sub.row(align=True)
+ sub.active = gp_settings.show_fill
+ sub.prop(gp_settings, "fill_threshold", text="")
class VIEW3D_PT_tools_grease_pencil_brush_stroke(Panel, View3DPanel):