Fix T63120 Select random in particle edit mode is broken

Fix coding snafu where the variable keeping track of changes only took
the state of the last element into account.
This commit is contained in:
Sebastian Parborg
2019-04-02 12:35:16 +02:00
parent 62811c3ba1
commit dbccbc51fb

View File

@@ -1926,7 +1926,7 @@ static int select_random_exec(bContext *C, wmOperator *op)
LOOP_VISIBLE_POINTS {
int flag = ((BLI_rng_get_float(rng) < randfac) == select) ? SEL_SELECT : SEL_DESELECT;
LOOP_KEYS {
data.is_changed = select_action_apply(point, key, flag);
data.is_changed |= select_action_apply(point, key, flag);
}
}
break;
@@ -1934,7 +1934,7 @@ static int select_random_exec(bContext *C, wmOperator *op)
LOOP_VISIBLE_POINTS {
LOOP_VISIBLE_KEYS {
int flag = ((BLI_rng_get_float(rng) < randfac) == select) ? SEL_SELECT : SEL_DESELECT;
data.is_changed = select_action_apply(point, key, flag);
data.is_changed |= select_action_apply(point, key, flag);
}
}
break;