2.4x - Grease Pencil: Swapping the order of args for gpencil_frame_delete_laststroke() to be more consistent with the rest of the Grease Pencil API.
This commit is contained in:
@@ -65,7 +65,7 @@ struct bGPdata *gpencil_data_getactive(struct ScrArea *sa);
|
||||
short gpencil_data_setactive(struct ScrArea *sa, struct bGPdata *gpd);
|
||||
struct ScrArea *gpencil_data_findowner(struct bGPdata *gpd);
|
||||
|
||||
void gpencil_frame_delete_laststroke(struct bGPDframe *gpf, bGPDlayer *gpl);
|
||||
void gpencil_frame_delete_laststroke(struct bGPDlayer *gpl, struct bGPDframe *gpf);
|
||||
|
||||
struct bGPDframe *gpencil_layer_getframe(struct bGPDlayer *gpl, int cframe, short addnew);
|
||||
void gpencil_layer_delframe(struct bGPDlayer *gpl, struct bGPDframe *gpf);
|
||||
|
||||
@@ -142,7 +142,7 @@ void gp_ui_delstroke_cb (void *gpd, void *gpl)
|
||||
if (gpf->framenum != CFRA) return;
|
||||
|
||||
gpencil_layer_setactive(gpd, gpl);
|
||||
gpencil_frame_delete_laststroke(gpf, gpl);
|
||||
gpencil_frame_delete_laststroke(gpl, gpf);
|
||||
|
||||
scrarea_queue_winredraw(curarea);
|
||||
}
|
||||
|
||||
@@ -484,7 +484,7 @@ ScrArea *gpencil_data_findowner (bGPdata *gpd)
|
||||
/* -------- GP-Frame API ---------- */
|
||||
|
||||
/* delete the last stroke of the given frame */
|
||||
void gpencil_frame_delete_laststroke (bGPDframe *gpf, bGPDlayer *gpl)
|
||||
void gpencil_frame_delete_laststroke (bGPDlayer *gpl, bGPDframe *gpf)
|
||||
{
|
||||
bGPDstroke *gps= (gpf) ? gpf->strokes.last : NULL;
|
||||
|
||||
@@ -704,7 +704,7 @@ void gpencil_delete_laststroke (bGPdata *gpd)
|
||||
|
||||
if (gpf->framenum != CFRA) return;
|
||||
|
||||
gpencil_frame_delete_laststroke(gpf, gpl);
|
||||
gpencil_frame_delete_laststroke(gpl, gpf);
|
||||
}
|
||||
|
||||
/* delete the active frame */
|
||||
|
||||
Reference in New Issue
Block a user