Tool System: make smooth and randomize interactive

This commit is contained in:
Campbell Barton
2018-09-13 09:19:30 +10:00
parent 1f1802307f
commit 9e5259b043
3 changed files with 10 additions and 6 deletions

View File

@@ -776,9 +776,10 @@ class _defs_edit_mesh:
return dict(
text="Smooth",
icon="ops.mesh.vertices_smooth",
widget=None,
widget="WM_GGT_value_operator_redo",
keymap=(
("mesh.vertices_smooth", dict(),
# Use 0.0, so dragging increases from nothing.
("mesh.vertices_smooth", dict(factor=0.0),
dict(type='ACTIONMOUSE', value='PRESS')),
),
)
@@ -788,9 +789,10 @@ class _defs_edit_mesh:
return dict(
text="Randomize",
icon="ops.transform.vertex_random",
widget=None,
widget="WM_GGT_value_operator_redo",
keymap=(
("transform.vertex_random", dict(),
# Use 0.0, so dragging increases from nothing.
("transform.vertex_random", dict(offset=0.0),
dict(type='ACTIONMOUSE', value='PRESS')),
),
)