diff options
author | Piotr Makal <pmakal> | 2021-06-28 12:54:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-06-28 12:57:46 +0300 |
commit | 98cd0fed3604823a7973cff38c24a4c7dd8a03e7 (patch) | |
tree | 67ac2231c42b3d40407d042d4bdd362bbfc48c18 /source/blender/editors/mesh/editmesh_select.c | |
parent | 1c8c91384c8d7d23b9a966802182e3ef607103ac (diff) |
Fix edit-mesh random select regression in random seed use
Fix regression in 9c202281287743494fd7d81a13970053bc8a33b5
that wasn't using the random seed correctly.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_select.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh_select.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c index 4a87266f1c9..d8973e100bc 100644 --- a/source/blender/editors/mesh/editmesh_select.c +++ b/source/blender/editors/mesh/editmesh_select.c @@ -4652,7 +4652,7 @@ static int edbm_select_random_exec(bContext *C, wmOperator *op) } } - BLI_array_randomize(elem_map, sizeof(*elem_map), elem_map_len, seed); + BLI_array_randomize(elem_map, sizeof(*elem_map), elem_map_len, seed_iter); const int count_select = elem_map_len * randfac; for (int i = 0; i < count_select; i++) { BM_vert_select_set(em->bm, elem_map[i], select); @@ -4668,7 +4668,7 @@ static int edbm_select_random_exec(bContext *C, wmOperator *op) elem_map[elem_map_len++] = eed; } } - BLI_array_randomize(elem_map, sizeof(*elem_map), elem_map_len, seed); + BLI_array_randomize(elem_map, sizeof(*elem_map), elem_map_len, seed_iter); const int count_select = elem_map_len * randfac; for (int i = 0; i < count_select; i++) { BM_edge_select_set(em->bm, elem_map[i], select); @@ -4684,7 +4684,7 @@ static int edbm_select_random_exec(bContext *C, wmOperator *op) elem_map[elem_map_len++] = efa; } } - BLI_array_randomize(elem_map, sizeof(*elem_map), elem_map_len, seed); + BLI_array_randomize(elem_map, sizeof(*elem_map), elem_map_len, seed_iter); const int count_select = elem_map_len * randfac; for (int i = 0; i < count_select; i++) { BM_face_select_set(em->bm, elem_map[i], select); |