From dbccbc51fb874b6c0f32c7bf207c208fa98b3f52 Mon Sep 17 00:00:00 2001 From: Sebastian Parborg Date: Tue, 2 Apr 2019 12:35:16 +0200 Subject: 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. --- source/blender/editors/physics/particle_edit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/physics') diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c index bd7f06c9674..112d453c44a 100644 --- a/source/blender/editors/physics/particle_edit.c +++ b/source/blender/editors/physics/particle_edit.c @@ -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; -- cgit v1.2.3