[Bf-blender-cvs] [718912f] GPencil_Editing_Stage3: GPencil Sculpt: Redraw the view on mousemove even if none of the strokes was affected

Joshua Leung noreply at git.blender.org
Fri Jul 10 14:39:02 CEST 2015


Commit: 718912f512645fc00c5ab990da03711c996fcefd
Author: Joshua Leung
Date:   Tue Jul 7 22:49:33 2015 +1200
Branches: GPencil_Editing_Stage3
https://developer.blender.org/rB718912f512645fc00c5ab990da03711c996fcefd

GPencil Sculpt: Redraw the view on mousemove even if none of the strokes was affected

The active viewport needs to get redrawn, or else the brush circle will not move
when "selection mask" is enabled and the user is trying to paint over non-selected
areas.

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

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

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

diff --git a/source/blender/editors/gpencil/gpencil_brush.c b/source/blender/editors/gpencil/gpencil_brush.c
index ef39db9..412498d 100644
--- a/source/blender/editors/gpencil/gpencil_brush.c
+++ b/source/blender/editors/gpencil/gpencil_brush.c
@@ -705,7 +705,11 @@ static int gpsculpt_brush_modal(bContext *C, wmOperator *op, const wmEvent *even
 			/* Mouse Move = Apply somewhere else */
 			case MOUSEMOVE:
 			case INBETWEEN_MOUSEMOVE:
+				/* apply brush effect at new position */
 				gpsculpt_brush_apply_event(C, op, event);
+				
+				/* force redraw, so that the cursor will at least be valid */
+				redraw_region = true;
 				break;
 			
 #if 0




More information about the Bf-blender-cvs mailing list