Commit: 59df941ea57770250c59feeed4f7ce72bafd5b60
Author: Julian Eisel
Date:   Sat Apr 4 14:27:05 2015 +0200
Branches: master
https://developer.blender.org/rB59df941ea57770250c59feeed4f7ce72bafd5b60

Fix T44259: Secondary strokes get terminated early when drawing in Continuous 
Drawing mode

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

M       source/blender/editors/gpencil/gpencil_paint.c

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

diff --git a/source/blender/editors/gpencil/gpencil_paint.c 
b/source/blender/editors/gpencil/gpencil_paint.c
index a299e23..0c5d381 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -1885,8 +1885,9 @@ static int gpencil_draw_modal(bContext *C, wmOperator 
*op, const wmEvent *event)
         *  - LEFTMOUSE  = standard drawing (all) / straight line drawing (all) 
/ polyline (toolbox only)
         *  - RIGHTMOUSE = polyline (hotkey) / eraser (all)
         *    (Disabling RIGHTMOUSE case here results in bugs like [#32647])
+        * also making sure we have a valid event value, to not exit too early
         */
-       if (ELEM(event->type, LEFTMOUSE, RIGHTMOUSE)) {
+       if (ELEM(event->type, LEFTMOUSE, RIGHTMOUSE) && event->val != 0) {
                /* if painting, end stroke */
                if (p->status == GP_STATUS_PAINTING) {
                        int sketch = 0;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to