Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_paint_common.py
| Show First 20 Lines • Show All 1,246 Lines • ▼ Show 20 Lines | else: # brush.gpencil_tool == 'DRAW/TINT': | ||||
| if gp_settings.use_strength_pressure and not compact: | if gp_settings.use_strength_pressure and not compact: | ||||
| col = layout.column() | col = layout.column() | ||||
| col.template_curve_mapping(gp_settings, "curve_strength", brush=True, | col.template_curve_mapping(gp_settings, "curve_strength", brush=True, | ||||
| use_negative_slope=True) | use_negative_slope=True) | ||||
| if brush.gpencil_tool == 'TINT': | if brush.gpencil_tool == 'TINT': | ||||
| row = layout.row(align=True) | row = layout.row(align=True) | ||||
| row.prop(gp_settings, "vertex_mode", text="Mode") | row.prop(gp_settings, "vertex_mode", text="Mode") | ||||
| else: | |||||
| row = layout.row(align=True) | |||||
| if context.region.type == 'TOOL_HEADER': | |||||
| row.prop(gp_settings, "caps_type", text="", expand=True) | |||||
| else: | |||||
| row.prop(gp_settings, "caps_type", text="Caps Type") | |||||
| # FIXME: tools must use their own UI drawing! | # FIXME: tools must use their own UI drawing! | ||||
| if tool.idname in { | if tool.idname in { | ||||
| "builtin.arc", | "builtin.arc", | ||||
| "builtin.curve", | "builtin.curve", | ||||
| "builtin.line", | "builtin.line", | ||||
| "builtin.box", | "builtin.box", | ||||
| "builtin.circle", | "builtin.circle", | ||||
| ▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines | |||||