diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-09-13 02:19:30 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-13 02:19:30 +0300 |
commit | 9e5259b0434550a40c08042524fca6b4bb1a07ee (patch) | |
tree | 324c328face8eb7c743db6351c6b2e4f510ad41a /release/scripts/startup/bl_ui/space_toolsystem_toolbar.py | |
parent | 1f1802307f9a3b1a09b9eb8d70dadc7c849c5e2c (diff) |
Tool System: make smooth and randomize interactive
Diffstat (limited to 'release/scripts/startup/bl_ui/space_toolsystem_toolbar.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_toolsystem_toolbar.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py index f958221ea2e..f304d179d5f 100644 --- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py +++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py @@ -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')), ), ) |