80 if (
ELEM(
nullptr, gpl, gpf)) {
98 ot->
name =
"Delete Active Frame";
99 ot->
idname =
"GPENCIL_OT_annotation_active_frame_delete";
100 ot->
description =
"Delete the active frame for the active Annotation Layer";
Read Blender memory allocation and freeing.
struct bGPDframe * BKE_annotations_layer_frame_get(struct bGPDlayer *gpl, int cframe, eGP_GetFrame_Mode addnew)
static wmOperatorStatus gpencil_actframe_delete_exec(bContext *C, wmOperator *op)
void DEG_id_tag_update(ID *id, unsigned int flags)
void BKE_report(ReportList *reports, eReportType type, const char *message)
void GPENCIL_OT_annotation_active_frame_delete(wmOperatorType *ot)
bGPdata * ED_annotation_data_get_active(const bContext *C)
struct bGPDlayer * BKE_annotations_layer_active_get(struct bGPdata *gpd)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
static bool annotation_actframe_delete_poll(bContext *C)
bool BKE_annotations_layer_frame_delete(struct bGPDlayer *gpl, struct bGPDframe *gpf)
Scene * CTX_data_scene(const bContext *C)
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
struct ReportList * reports