fix for last commit, needed some additional checks
authorJoseph Eagar <joeedh@gmail.com>
Fri, 3 Apr 2009 04:36:38 +0000 (04:36 +0000)
committerJoseph Eagar <joeedh@gmail.com>
Fri, 3 Apr 2009 04:36:38 +0000 (04:36 +0000)
source/blender/src/drawgpencil.c
source/blender/src/gpencil.c

index 914a604de443d700014850c4b393c1a73630834d..3c6cef469a2d1fdca07364c059b5df2f30ff0189 100644 (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);
        
index fa502a1af596e24035dd5a256a996be121078d9e..c7e453c416c30e09656a2eb772614c0a8843a6aa 100644 (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);
 }