Tools: Add Radius tool to Grease Pencil toolbar

Icon pending.
This commit is contained in:
William Reynish
2019-03-07 11:12:30 +01:00
parent aef3eff5aa
commit cee53160d2
2 changed files with 30 additions and 2 deletions

View File

@@ -1253,6 +1253,19 @@ class _defs_gpencil_edit:
draw_settings=draw_settings,
)
@ToolDef.from_fn
def radius():
return dict(
text="Radius",
description=(
"Expand or contract the radius of the selected points"
),
icon="ops.gpencil.radius",
widget=None,
keymap=(),
)
@ToolDef.from_fn
def shear():
return dict(
@@ -1750,9 +1763,12 @@ class VIEW3D_PT_tools_active(ToolSelectPanelHelper, Panel):
*_tools_transform,
None,
_defs_gpencil_edit.extrude,
_defs_gpencil_edit.radius,
_defs_gpencil_edit.bend,
_defs_gpencil_edit.shear,
_defs_gpencil_edit.tosphere,
(
_defs_gpencil_edit.shear,
_defs_gpencil_edit.tosphere,
),
],
'SCULPT_GPENCIL': [