Fix T69634: GPencil:Cutter Tool removes unexpected strokes on another layer
The function was not checking the locked flag.
This commit is contained in:
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
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue