diff options
author | Piotr Makal <pmakal> | 2021-06-28 12:54:22 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-06-30 10:14:16 +0300 |
commit | 27e32652679304eaa323c0819eb91fe296eeb275 (patch) | |
tree | ef7356fd607b9b529c51f348e6a92c10e6b098bc /source/blender/editors/mesh | |
parent | cf9cacd091e8cbabf9bfc91b0949bfea785968d4 (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')
-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 6cb103460f6..ba3e3e2ece4 100644 --- a/source/blender/editors/mesh/editmesh_select.c +++ b/source/blender/editors/mesh/editmesh_select.c @@ -4643,7 +4643,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); @@ -4659,7 +4659,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); @@ -4675,7 +4675,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); |