diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2019-09-08 17:49:47 +0300 |
---|---|---|
committer | YimingWu <xp8110@outlook.com> | 2019-09-12 04:13:03 +0300 |
commit | 4442e060ba64d6876053190536195fac3c3334e1 (patch) | |
tree | 5e832becfac09c6ef4a87c1f6b7a05d725cb08d7 | |
parent | b12aaf12624a10d6d356377b751217b587bc51f1 (diff) |
Fix T69634: GPencil:Cutter Tool removes unexpected strokes on another layer
The function was not checking the locked flag.
-rw-r--r-- | source/blender/editors/gpencil/gpencil_edit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/gpencil/gpencil_edit.c b/source/blender/editors/gpencil/gpencil_edit.c index 8442c906ac1..1834261e1bf 100644 --- a/source/blender/editors/gpencil/gpencil_edit.c +++ b/source/blender/editors/gpencil/gpencil_edit.c @@ -4489,6 +4489,10 @@ static int gpencil_cutter_lasso_select(bContext *C, /* dissolve selected points */ bGPDstroke *gpsn; for (bGPDlayer *gpl = gpd->layers.first; gpl; gpl = gpl->next) { + if (gpl->flag & GP_LAYER_LOCKED) { + continue; + } + bGPDframe *gpf = gpl->actframe; if (gpf == NULL) { continue; |