diff options
author | Sebastian Parborg <darkdefende@gmail.com> | 2019-04-02 13:35:16 +0300 |
---|---|---|
committer | Sebastian Parborg <darkdefende@gmail.com> | 2019-04-02 13:37:45 +0300 |
commit | dbccbc51fb874b6c0f32c7bf207c208fa98b3f52 (patch) | |
tree | 3255fef8a92622e30842f1fa242822348f10fafe /source/blender/editors/physics | |
parent | 62811c3ba17a96c41803c69a515f02531330e3a1 (diff) |
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.
Diffstat (limited to 'source/blender/editors/physics')
-rw-r--r-- | source/blender/editors/physics/particle_edit.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |