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
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2019-09-08 17:49:47 +0300
committerYimingWu <xp8110@outlook.com>2019-09-12 04:13:03 +0300
commit4442e060ba64d6876053190536195fac3c3334e1 (patch)
tree5e832becfac09c6ef4a87c1f6b7a05d725cb08d7
parentb12aaf12624a10d6d356377b751217b587bc51f1 (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.c4
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;