From 28ca3ebc5f81347cad53f9a8b946166f469fa7da Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 29 Mar 2016 01:20:45 +1100 Subject: Fix T47969: Select Random always uses same seed Increment the seed on each use, otherwise calling again selects the same order, unless you manually adjust the seed. --- source/blender/editors/curve/editcurve_select.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/curve/editcurve_select.c') diff --git a/source/blender/editors/curve/editcurve_select.c b/source/blender/editors/curve/editcurve_select.c index 4855f9d1e6c..a29266294b4 100644 --- a/source/blender/editors/curve/editcurve_select.c +++ b/source/blender/editors/curve/editcurve_select.c @@ -1045,7 +1045,7 @@ static int curve_select_random_exec(bContext *C, wmOperator *op) ListBase *editnurb = object_editcurve_get(obedit); const bool select = (RNA_enum_get(op->ptr, "action") == SEL_SELECT); const float randfac = RNA_float_get(op->ptr, "percent") / 100.0f; - const int seed = RNA_int_get(op->ptr, "seed"); + const int seed = WM_operator_properties_select_random_seed_increment_get(op); curve_select_random(editnurb, randfac, seed, select); BKE_curve_nurb_vert_active_validate(obedit->data); -- cgit v1.2.3