From 86832ececcb9d5ed8fa05a02415f7c31905eae4a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 2 Jan 2020 17:00:17 +1100 Subject: 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. --- source/blender/editors/object/object_random.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/object/object_random.c') 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, -- cgit v1.2.3