Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-06-13 19:25:23 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-13 19:25:23 +0300
commita3c630aebb34e88de3a4820a0bb0f4359e13570d (patch)
tree2f47b259fb066f949301b644ba4c648fd79e5a36 /source
parent2e23385c35727a78417d0ea5f1aec47320268436 (diff)
parent57cd52a4abbad02b314d8dabf7c77d96e9dcfe74 (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/physics/particle_edit.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c
index 032dd9389ce..eeb14951d43 100644
--- a/source/blender/editors/physics/particle_edit.c
+++ b/source/blender/editors/physics/particle_edit.c
@@ -4078,8 +4078,11 @@ static int brush_edit_modal(bContext *C, wmOperator *op, const wmEvent *event)
case LEFTMOUSE:
case MIDDLEMOUSE:
case RIGHTMOUSE: // XXX hardcoded
- brush_edit_exit(op);
- return OPERATOR_FINISHED;
+ if (event->val == KM_RELEASE) {
+ brush_edit_exit(op);
+ return OPERATOR_FINISHED;
+ }
+ break;
case MOUSEMOVE:
brush_edit_apply_event(C, op, event);
break;