diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2019-09-08 17:49:47 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2019-09-08 17:49:47 +0300 |
commit | 5de51b46b6575bcd0814c2c3d14f267c717919d7 (patch) | |
tree | 3c2e622594e2450948932b4ebd1038ea0428bbeb /source/blender/editors | |
parent | c3be14e15196e0ddf2d8223b9322aa1094a19e29 (diff) |
Fix T69634: GPencil:Cutter Tool removes unexpected strokes on another layer
The function was not checking the locked flag.
Diffstat (limited to 'source/blender/editors')
-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; |