fix for last commit, needed some additional checks

This commit is contained in:
Joseph Eagar
2009-04-03 04:36:38 +00:00
parent d573e9c539
commit 60bd7d12fc
2 changed files with 4 additions and 0 deletions

View File

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

View File

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