Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-01-02 09:00:17 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-01-02 09:18:42 +0300
commit86832ececcb9d5ed8fa05a02415f7c31905eae4a (patch)
treedfe7a752b05e0af78120901c61b9e4dc2d44fe14 /source/blender/editors/object/object_random.c
parentb5dd73a48b5a7b7befa98a2f278143c035713fc7 (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/object/object_random.c')
-rw-r--r--source/blender/editors/object/object_random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_random.c b/source/blender/editors/object/object_random.c
index a130e3f3766..43aaecb887b 100644
--- a/source/blender/editors/object/object_random.c
+++ b/source/blender/editors/object/object_random.c
@@ -159,7 +159,7 @@ void TRANSFORM_OT_vertex_random(struct wmOperatorType *ot)
/* props */
ot->prop = RNA_def_float_distance(
- ot->srna, "offset", 0.1f, -FLT_MAX, FLT_MAX, "Amount", "Distance to offset", -10.0f, 10.0f);
+ ot->srna, "offset", 0.0f, -FLT_MAX, FLT_MAX, "Amount", "Distance to offset", -10.0f, 10.0f);
RNA_def_float_factor(ot->srna,
"uniform",
0.0f,