Cleanup: use ternary operator for icon argument
This commit is contained in:
parent
ca3891e83b
commit
c7fee64dea
|
@ -1456,11 +1456,12 @@ class VIEW3D_PT_tools_grease_pencil_brush_advanced(View3DPanel, Panel):
|
|||
elif brush.gpencil_tool == 'FILL':
|
||||
row = col.row(align=True)
|
||||
row.prop(gp_settings, "fill_draw_mode", text="Boundary")
|
||||
if gp_settings.show_fill_boundary:
|
||||
icon = 'HIDE_OFF'
|
||||
else:
|
||||
icon = 'HIDE_ON'
|
||||
row.prop(gp_settings, "show_fill_boundary", text="", icon=icon)
|
||||
row.prop(
|
||||
gp_settings,
|
||||
"show_fill_boundary",
|
||||
icon='HIDE_OFF' if gp_settings.show_fill_boundary else 'HIDE_ON',
|
||||
text="",
|
||||
)
|
||||
|
||||
col.separator()
|
||||
row = col.row(align=True)
|
||||
|
@ -1469,12 +1470,12 @@ class VIEW3D_PT_tools_grease_pencil_brush_advanced(View3DPanel, Panel):
|
|||
col.separator()
|
||||
row = col.row(align=True)
|
||||
row.prop(gp_settings, "extend_stroke_factor")
|
||||
if gp_settings.show_fill_extend:
|
||||
icon = 'HIDE_OFF'
|
||||
else:
|
||||
icon = 'HIDE_ON'
|
||||
|
||||
row.prop(gp_settings, "show_fill_extend", text="", icon=icon)
|
||||
row.prop(
|
||||
gp_settings,
|
||||
"show_fill_extend",
|
||||
icon='HIDE_OFF' if gp_settings.show_fill_extend else 'HIDE_ON',
|
||||
text="",
|
||||
)
|
||||
|
||||
col.separator()
|
||||
col.prop(gp_settings, "fill_leak", text="Leak Size")
|
||||
|
|
Loading…
Reference in New Issue