diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-01-02 09:00:17 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-01-02 09:18:42 +0300 |
commit | 86832ececcb9d5ed8fa05a02415f7c31905eae4a (patch) | |
tree | dfe7a752b05e0af78120901c61b9e4dc2d44fe14 /source/blender/editors/mesh/editmesh_tools.c | |
parent | b5dd73a48b5a7b7befa98a2f278143c035713fc7 (diff) |
Tool System: adjust Smooth/Randomize modal operator behavior
Previously the default values were left non-zero to avoid having to
update scripts. However, this meant it wasn't possible to setup
non-modal key bindings for smooth & randomize.
Now these operators follow logic of many other operators where setting
the value executes immediately, leaving unset runs modal.
Existing keymaps & scripts will need to be updated.
Addresses issue raised in f4a4ec84255a.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_tools.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh_tools.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c index 59090acf433..abc0d258e55 100644 --- a/source/blender/editors/mesh/editmesh_tools.c +++ b/source/blender/editors/mesh/editmesh_tools.c @@ -2357,7 +2357,7 @@ void MESH_OT_vertices_smooth(wmOperatorType *ot) ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; ot->prop = RNA_def_float_factor( - ot->srna, "factor", 0.5f, -10.0f, 10.0f, "Smoothing", "Smoothing factor", 0.0f, 1.0f); + ot->srna, "factor", 0.0f, -10.0f, 10.0f, "Smoothing", "Smoothing factor", 0.0f, 1.0f); RNA_def_int( ot->srna, "repeat", 1, 1, 1000, "Repeat", "Number of times to smooth the mesh", 1, 100); |