Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2019-01-25 22:01:11 +0300
committerAntonioya <blendergit@gmail.com>2019-01-25 22:01:29 +0300
commit16c3425fe61220a487aef443e0f58cd07be65c4e (patch)
tree26d7538b5161f330174f5162f3f5f38352dde1e1 /source
parent8bd55cf3d566d5fc51517a0a100fc2bcf14c1f46 (diff)
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.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/gpencil/gpencil_edit.c2
1 files changed, 2 insertions, 0 deletions
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);
}
}