diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-03-28 17:20:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-03-28 17:24:57 +0300 |
commit | 28ca3ebc5f81347cad53f9a8b946166f469fa7da (patch) | |
tree | fe1b6e72911e5d8a634f62c363d67d9bfc7f7f80 /source/blender/editors/physics | |
parent | d336bb0765e8175e93e4f9d2c024e258a8c992e5 (diff) |
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.
Diffstat (limited to 'source/blender/editors/physics')
-rw-r--r-- | source/blender/editors/physics/particle_edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c index 277189b4e81..29824a348f5 100644 --- a/source/blender/editors/physics/particle_edit.c +++ b/source/blender/editors/physics/particle_edit.c @@ -1635,7 +1635,7 @@ static int select_random_exec(bContext *C, wmOperator *op) int k; 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); const bool select = (RNA_enum_get(op->ptr, "action") == SEL_SELECT); RNG *rng; |