GP: Set cyclic to OFF when use cutter
authorAntonioya <blendergit@gmail.com>
Fri, 25 Jan 2019 19:01:11 +0000 (20:01 +0100)
committerAntonioya <blendergit@gmail.com>
Fri, 25 Jan 2019 19:01:29 +0000 (20:01 +0100)
When cut a stroke, the cyclic must be set to off because keep it gets very weird results.

source/blender/editors/gpencil/gpencil_edit.c

index 05bd5dd3c1baf3ae9563e366682eddec7d8a164c..b13a15e6096ca1892f7798086b791010bbaa297f 100644 (file)
@@ -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);
                        }
                }