Sculpt Curves: UI tweaks and shortcut

* Minimum Distance -> Distance Mix
* Max Count -> Count Max
* Shift + A for selection grow

This follows better the names we have in geometry nodes in the Distribute Points
node when using the Poisson Disk method (Distance Min, Distance Max).

The shortcut for the selection grow is the same we use in mesh sculpt
for the Expand Mask operator (which behaves a bit similar).
This commit is contained in:
Dalai Felinto 2022-07-01 10:20:07 +02:00
parent 0554537c3c
commit 3ffc558341
2 changed files with 3 additions and 2 deletions

View File

@ -5625,6 +5625,7 @@ def km_sculpt_curves(params):
*_template_paint_radial_control("curves_sculpt"),
*_template_items_select_actions(params, "sculpt_curves.select_all"),
("sculpt_curves.min_distance_edit", {"type": 'R', "value": 'PRESS', "shift": True}, {}),
("sculpt_curves.select_grow", {"type": 'A', "value": 'PRESS', "shift": True}, {}),
])
return keymap

View File

@ -550,12 +550,12 @@ class _draw_tool_settings_context_mode:
row = layout.row(align=True)
row.prop(brush.curves_sculpt_settings, "density_mode", text="", expand=True)
row = layout.row(align=True)
row.prop(brush.curves_sculpt_settings, "minimum_distance")
row.prop(brush.curves_sculpt_settings, "minimum_distance", text="Distance Min")
row.operator_context = 'INVOKE_REGION_WIN'
row.operator("sculpt_curves.min_distance_edit", text="", icon='DRIVER_DISTANCE')
row = layout.row(align=True)
row.enabled = brush.curves_sculpt_settings.density_mode != 'REMOVE'
row.prop(brush.curves_sculpt_settings, "density_add_attempts", text="Max Count")
row.prop(brush.curves_sculpt_settings, "density_add_attempts", text="Count Max")
layout.popover("VIEW3D_PT_tools_brush_falloff")
layout.popover("VIEW3D_PT_curves_sculpt_add_shape", text="Curve Shape")
elif curves_tool == "SLIDE":