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:23:09 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-13 19:23:09 +0300
commit57cd52a4abbad02b314d8dabf7c77d96e9dcfe74 (patch)
treef9a361f8811ea907fa462a377a61493f0f129d6a /source
parentf61c30f804e36bf00e7124514f02bbee42e0197d (diff)
WM: check release event for particle edit mode
Caused by drag event.
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 41310f86807..acfc3844b83 100644
--- a/source/blender/editors/physics/particle_edit.c
+++ b/source/blender/editors/physics/particle_edit.c
@@ -4028,8 +4028,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;