GP: Change appearance panel for sculpt brushes

This commit is contained in:
Antonioya
2018-09-21 23:11:30 +02:00
parent 3a61771fdc
commit fbede83afd
2 changed files with 5 additions and 3 deletions

View File

@@ -259,7 +259,7 @@ class GreasePencilStrokeSculptPanel:
layout.prop(brush, "use_falloff")
if tool in {'THICKNESS', 'PINCH', 'TWIST'}:
if tool in {'THICKNESS', 'STRENGTH', 'PINCH', 'TWIST'}:
col = layout.column()
col.separator()
col.row().prop(brush, "direction", expand=True)
@@ -335,11 +335,13 @@ class GreasePencilAppearancePanel:
elif ob.mode in {'GPENCIL_SCULPT', 'GPENCIL_WEIGHT'}:
settings = context.tool_settings.gpencil_sculpt
brush = settings.brush
tool = settings.tool
col = layout.column(align=True)
col.prop(brush, "use_cursor", text="Show Brush")
col.row().prop(brush, "cursor_color_add", text="Add")
col.row().prop(brush, "cursor_color_sub", text="Subtract")
if tool in {'THICKNESS', 'STRENGTH', 'PINCH', 'TWIST'}:
col.row().prop(brush, "cursor_color_sub", text="Subtract")
class GPENCIL_MT_pie_tool_palette(Menu):

View File

@@ -1401,7 +1401,7 @@ class _defs_gpencil_sculpt:
row.prop(brush, "strength", slider=True)
row.prop(brush, "use_pressure_strength", text="")
if tool in {'THICKNESS', 'PINCH', 'TWIST'}:
if tool in {'THICKNESS', 'STRENGTH', 'PINCH', 'TWIST'}:
row.separator()
row.prop(brush, "direction", expand=True, text="")