Merge branch 'blender-v4.1-release'
This commit is contained in:
@@ -1469,20 +1469,12 @@ def brush_basic_gpencil_sculpt_settings(layout, _context, brush, *, compact=Fals
|
||||
if compact:
|
||||
if tool in {'THICKNESS', 'STRENGTH', 'PINCH', 'TWIST'}:
|
||||
row.separator()
|
||||
row.prop(gp_settings, "direction", expand=True, text="")
|
||||
row.prop(brush, "direction", expand=True, text="")
|
||||
else:
|
||||
use_property_split_prev = layout.use_property_split
|
||||
layout.use_property_split = False
|
||||
if tool in {'THICKNESS', 'STRENGTH'}:
|
||||
layout.row().prop(gp_settings, "direction", expand=True)
|
||||
elif tool == 'PINCH':
|
||||
row = layout.row(align=True)
|
||||
row.prop_enum(gp_settings, "direction", value='ADD', text="Pinch")
|
||||
row.prop_enum(gp_settings, "direction", value='SUBTRACT', text="Inflate")
|
||||
elif tool == 'TWIST':
|
||||
row = layout.row(align=True)
|
||||
row.prop_enum(gp_settings, "direction", value='ADD', text="CCW")
|
||||
row.prop_enum(gp_settings, "direction", value='SUBTRACT', text="CW")
|
||||
if tool in {'THICKNESS', 'STRENGTH', 'PINCH', 'TWIST'}:
|
||||
layout.row().prop(brush, "direction", expand=True)
|
||||
layout.use_property_split = use_property_split_prev
|
||||
|
||||
|
||||
@@ -1496,8 +1488,7 @@ def brush_basic_gpencil_weight_settings(layout, _context, brush, *, compact=Fals
|
||||
if brush.gpencil_weight_tool in {'WEIGHT'}:
|
||||
layout.prop(brush, "weight", slider=True)
|
||||
|
||||
gp_settings = brush.gpencil_settings
|
||||
layout.prop(gp_settings, "direction", expand=True, text="" if compact else "Direction")
|
||||
layout.prop(brush, "direction", expand=True, text="" if compact else "Direction")
|
||||
|
||||
|
||||
def brush_basic_gpencil_vertex_settings(layout, _context, brush, *, compact=False):
|
||||
|
||||
Reference in New Issue
Block a user