Fix edit-mesh random select regression in random seed use
Fix regression in 9c20228128
that wasn't using the random seed correctly.
This commit is contained in:
committed by
Campbell Barton
parent
1c8c91384c
commit
98cd0fed36
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user