[Bf-blender-cvs] [57cd52a4abb] master: WM: check release event for particle edit mode

Campbell Barton noreply at git.blender.org
Wed Jun 13 18:24:33 CEST 2018


Commit: 57cd52a4abbad02b314d8dabf7c77d96e9dcfe74
Author: Campbell Barton
Date:   Wed Jun 13 18:23:09 2018 +0200
Branches: master
https://developer.blender.org/rB57cd52a4abbad02b314d8dabf7c77d96e9dcfe74

WM: check release event for particle edit mode

Caused by drag event.

===================================================================

M	source/blender/editors/physics/particle_edit.c

===================================================================

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;



More information about the Bf-blender-cvs mailing list