[Bf-blender-cvs] [7743a2d] GPencil_Editing_Stage3: Fix: GP Sculpt was no longer making copies of the current frame when being used non-modally

Joshua Leung noreply at git.blender.org
Thu Oct 29 02:36:15 CET 2015


Commit: 7743a2d83952a9c8a25bfd1821d5c6e58e27a6c3
Author: Joshua Leung
Date:   Thu Oct 29 14:36:07 2015 +1300
Branches: GPencil_Editing_Stage3
https://developer.blender.org/rB7743a2d83952a9c8a25bfd1821d5c6e58e27a6c3

Fix: GP Sculpt was no longer making copies of the current frame when being used non-modally

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

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 d43f4e4..a9a53e3 100644
--- a/source/blender/editors/gpencil/gpencil_brush.c
+++ b/source/blender/editors/gpencil/gpencil_brush.c
@@ -1531,6 +1531,9 @@ static int gpsculpt_brush_invoke(bContext *C, wmOperator *op, const wmEvent *eve
 	if (is_modal == false) {
 		ARegion *ar = CTX_wm_region(C);
 		
+		/* ensure that we'll have a new frame to draw on */
+		gpsculpt_brush_init_stroke(gso);
+		
 		/* apply first dab... */
 		gso->is_painting = true;
 		gpsculpt_brush_apply_event(C, op, event);




More information about the Bf-blender-cvs mailing list