From dc0032cc2a779ec47be4263f34150568d13f0189 Mon Sep 17 00:00:00 2001 From: dupoxy Date: Wed, 18 Dec 2024 19:15:30 +0100 Subject: [PATCH] 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 --- scripts/startup/bl_ui/space_toolsystem_toolbar.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/scripts/startup/bl_ui/space_toolsystem_toolbar.py index 6bc14b5e09f..da5b4fdd250 100644 --- a/scripts/startup/bl_ui/space_toolsystem_toolbar.py +++ b/scripts/startup/bl_ui/space_toolsystem_toolbar.py @@ -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,