Merge branch 'master' into blender2.8
authorCampbell Barton <ideasman42@gmail.com>
Wed, 13 Jun 2018 16:25:23 +0000 (18:25 +0200)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 13 Jun 2018 16:25:23 +0000 (18:25 +0200)
source/blender/editors/physics/particle_edit.c

index 032dd9389ce4e0558f89e675715519e2a6ca270a..eeb14951d438b2646d676039a02842db14537af7 100644 (file)
@@ -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;