Tool System: expose shear tool x/y option

This commit is contained in:
Campbell Barton
2018-10-18 13:55:01 +11:00
parent 3e0c87b27d
commit 321c8232bc
4 changed files with 15 additions and 0 deletions

View File

@@ -831,6 +831,10 @@ class _defs_edit_mesh:
@ToolDef.from_fn
def shear():
def draw_settings(context, layout, tool):
props = tool.operator_properties("transform.shear")
layout.label(text="View Axis:")
layout.prop(props, "shear_axis", expand=True)
return dict(
text="Shear",
icon="ops.transform.shear",
@@ -839,6 +843,7 @@ class _defs_edit_mesh:
("transform.shear", dict(release_confirm=True),
dict(type='EVT_TWEAK_A', value='ANY')),
),
draw_settings=draw_settings,
)
@ToolDef.from_fn