Fix #124937: Grease Pencil: Change Shear tool icon to match Blender 4.2
Update the icon of the shear tool in edit mode to match the Grease Pencil shear icon in Blender 4.2. Pull Request: https://projects.blender.org/blender/blender/pulls/131993
This commit is contained in:
@@ -2377,6 +2377,19 @@ class _defs_grease_pencil_paint:
|
||||
|
||||
|
||||
class _defs_grease_pencil_edit:
|
||||
@ToolDef.from_fn
|
||||
def shear():
|
||||
def draw_settings(context, layout, _tool):
|
||||
_template_widget.VIEW3D_GGT_xform_gizmo.draw_settings_with_index(context, layout, 2)
|
||||
return dict(
|
||||
idname="builtin.shear",
|
||||
label="Shear",
|
||||
icon="ops.gpencil.edit_shear",
|
||||
widget="VIEW3D_GGT_xform_shear",
|
||||
keymap="3D View Tool: Shear",
|
||||
draw_settings=draw_settings,
|
||||
)
|
||||
|
||||
@ToolDef.from_fn
|
||||
def interpolate():
|
||||
def draw_settings(_context, layout, tool):
|
||||
@@ -3454,7 +3467,7 @@ class VIEW3D_PT_tools_active(ToolSelectPanelHelper, Panel):
|
||||
_defs_edit_curve.curve_radius,
|
||||
_defs_transform.bend,
|
||||
(
|
||||
_defs_transform.shear,
|
||||
_defs_grease_pencil_edit.shear,
|
||||
_defs_edit_mesh.tosphere,
|
||||
),
|
||||
None,
|
||||
|
||||
Reference in New Issue
Block a user