[Bf-blender-cvs] [16c3425fe61] master: GP: Set cyclic to OFF when use cutter

Antonioya noreply at git.blender.org
Fri Jan 25 20:01:33 CET 2019


Commit: 16c3425fe61220a487aef443e0f58cd07be65c4e
Author: Antonioya
Date:   Fri Jan 25 20:01:11 2019 +0100
Branches: master
https://developer.blender.org/rB16c3425fe61220a487aef443e0f58cd07be65c4e

GP: Set cyclic to OFF when use cutter

When cut a stroke, the cyclic must be set to off because keep it gets very weird results.

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

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

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

diff --git a/source/blender/editors/gpencil/gpencil_edit.c b/source/blender/editors/gpencil/gpencil_edit.c
index 05bd5dd3c1b..b13a15e6096 100644
--- a/source/blender/editors/gpencil/gpencil_edit.c
+++ b/source/blender/editors/gpencil/gpencil_edit.c
@@ -4005,6 +4005,8 @@ static int gpencil_cutter_lasso_select(
 		for (bGPDstroke *gps = gpf->strokes.first; gps; gps = gpsn) {
 			gpsn = gps->next;
 			if (gps->flag & GP_STROKE_SELECT) {
+				/* disable cyclic */
+				gps->flag &= ~GP_STROKE_CYCLIC;
 				gpencil_cutter_dissolve(gpl, gps);
 			}
 		}



More information about the Bf-blender-cvs mailing list