Fix T69634: GPencil:Cutter Tool removes unexpected strokes on another layer

The function was not checking the locked flag.
This commit is contained in:
Antonio Vazquez 2019-09-08 16:49:47 +02:00
parent c3be14e151
commit 5de51b46b6
Notes: blender-bot 2023-02-14 10:11:49 +01:00
Referenced by issue #69634, GPencil: Cutter Tool removes unexpected strokes on another layer
1 changed files with 4 additions and 0 deletions

View File

@ -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;