GP: More changes to sculpt panels and topbar

This commit is contained in:
Antonio Vazquez 2018-09-21 22:50:02 +02:00
parent 502dbcf404
commit 664865680a
Notes: blender-bot 2023-02-14 05:17:34 +01:00
Referenced by issue #56872, Blender 2.8: Crash shortly after using the "Offset edge loop cut" tool
2 changed files with 6 additions and 1 deletions

View File

@ -265,7 +265,6 @@ class GreasePencilStrokeSculptPanel:
col.row().prop(brush, "direction", expand=True)
class GreasePencilSculptOptionsPanel:
bl_label = "Sculpt Strokes"

View File

@ -1392,6 +1392,7 @@ class _defs_gpencil_sculpt:
if ob and ob.mode == 'GPENCIL_SCULPT':
ts = context.tool_settings
settings = ts.gpencil_sculpt
tool = settings.tool
brush = settings.brush
layout.prop(brush, "size", slider=True)
@ -1399,6 +1400,11 @@ class _defs_gpencil_sculpt:
row = layout.row(align=True)
row.prop(brush, "strength", slider=True)
row.prop(brush, "use_pressure_strength", text="")
if tool in {'THICKNESS', 'PINCH', 'TWIST'}:
row.separator()
row.prop(brush, "direction", expand=True, text="")
row.separator()
row.prop(ts.gpencil_sculpt, "use_select_mask", text="")