Tools: Rename Curve Shrink/Fatten to Radius
This is fundamentally different from Shrink/Fatten for meshes, because the control points are not moved, only the radius. Issue raised by Ronan Ducluzeau, name suggested by Campbell Barton
This commit is contained in:
@@ -5663,9 +5663,9 @@ def km_3d_view_tool_edit_curve_tilt(params):
|
||||
)
|
||||
|
||||
|
||||
def km_3d_view_tool_edit_curve_shrink_fatten(params):
|
||||
def km_3d_view_tool_edit_curve_radius(params):
|
||||
return (
|
||||
"3D View Tool: Edit Curve, Shrink/Fatten",
|
||||
"3D View Tool: Edit Curve, Radius",
|
||||
{"space_type": 'VIEW_3D', "region_type": 'WINDOW'},
|
||||
{"items": [
|
||||
("transform.transform", {"type": params.tool_tweak, "value": 'ANY'},
|
||||
@@ -6153,7 +6153,7 @@ def generate_keymaps(params=None):
|
||||
km_3d_view_tool_edit_mesh_rip_region(params),
|
||||
km_3d_view_tool_edit_mesh_rip_edge(params),
|
||||
km_3d_view_tool_edit_curve_draw(params),
|
||||
km_3d_view_tool_edit_curve_shrink_fatten(params),
|
||||
km_3d_view_tool_edit_curve_radius(params),
|
||||
km_3d_view_tool_edit_curve_tilt(params),
|
||||
km_3d_view_tool_edit_curve_randomize(params),
|
||||
km_3d_view_tool_edit_curve_extrude(params),
|
||||
|
||||
@@ -803,10 +803,10 @@ class _defs_edit_curve:
|
||||
)
|
||||
|
||||
@ToolDef.from_fn
|
||||
def curve_shrink_fatten():
|
||||
def curve_radius():
|
||||
return dict(
|
||||
text="Shrink/Fatten",
|
||||
icon="ops.curve.shrink_fatten",
|
||||
text="Radius",
|
||||
icon="ops.curve.radius",
|
||||
widget=None,
|
||||
keymap=(),
|
||||
)
|
||||
@@ -1615,7 +1615,7 @@ class VIEW3D_PT_tools_active(ToolSelectPanelHelper, Panel):
|
||||
'EDIT_CURVE': [
|
||||
*_tools_default,
|
||||
None,
|
||||
_defs_edit_curve.curve_shrink_fatten,
|
||||
_defs_edit_curve.curve_radius,
|
||||
_defs_edit_curve.curve_vertex_randomize,
|
||||
_defs_edit_curve.tilt,
|
||||
_defs_edit_curve.draw,
|
||||
|
||||
@@ -668,7 +668,7 @@ set_property(GLOBAL PROPERTY ICON_GEOM_NAMES
|
||||
ops.curve.draw
|
||||
ops.curve.extrude_cursor
|
||||
ops.curve.extrude_move
|
||||
ops.curve.shrink_fatten
|
||||
ops.curve.radius
|
||||
ops.curve.vertex_random
|
||||
ops.generic.cursor
|
||||
ops.generic.select
|
||||
|
||||
Reference in New Issue
Block a user