fix for last commit, needed some additional checks
This commit is contained in:
@@ -139,6 +139,8 @@ void gp_ui_delstroke_cb (void *gpd, void *gpl)
|
||||
{
|
||||
bGPDframe *gpf= gpencil_layer_getframe(gpl, CFRA, 0);
|
||||
|
||||
if (gpf->framenum != CFRA) return;
|
||||
|
||||
gpencil_layer_setactive(gpd, gpl);
|
||||
gpencil_frame_delete_laststroke(gpf, gpl);
|
||||
|
||||
|
||||
@@ -702,6 +702,8 @@ void gpencil_delete_laststroke (bGPdata *gpd)
|
||||
bGPDlayer *gpl= gpencil_layer_getactive(gpd);
|
||||
bGPDframe *gpf= gpencil_layer_getframe(gpl, CFRA, 0);
|
||||
|
||||
if (gpf->framenum != CFRA) return;
|
||||
|
||||
gpencil_frame_delete_laststroke(gpf, gpl);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user