138 ut->
name =
"Paint Curve";
struct Paint * BKE_paint_get_active_from_context(const struct bContext *C)
UndoStep * BKE_undosys_step_push_init_with_type(UndoStack *ustack, struct bContext *C, const char *name, const UndoType *ut)
eUndoPushReturn BKE_undosys_step_push(UndoStack *ustack, struct bContext *C, const char *name)
#define BKE_undosys_stack_limit_steps_and_memory_defaults(ustack)
const UndoType * BKE_UNDOSYS_TYPE_PAINTCURVE
void(* UndoTypeForEachIDRefFn)(void *user_data, struct UndoRefID *id_ref)
Generic array manipulation API.
#define BLI_array_is_zeroed(arr, arr_len)
struct UndoStack * ED_undo_stack_get(void)
Read Guarded memory(de)allocation.
void *(* MEM_dupallocN)(const void *vmemh)
bool paint_curve_poll(bContext *C)
static bool paintcurve_undosys_poll(bContext *C)
void ED_paintcurve_undosys_type(UndoType *ut)
static void paintcurve_undosys_foreach_ID_ref(UndoStep *us_p, UndoTypeForEachIDRefFn foreach_ID_ref_fn, void *user_data)
struct UndoCurve UndoCurve
static void paintcurve_undosys_step_encode_init(struct bContext *C, UndoStep *us_p)
struct PaintCurveUndoStep PaintCurveUndoStep
static void undocurve_from_paintcurve(UndoCurve *uc, const PaintCurve *pc)
static void paintcurve_undosys_step_free(UndoStep *us_p)
static void undocurve_to_paintcurve(const UndoCurve *uc, PaintCurve *pc)
void ED_paintcurve_undo_push_begin(const char *name)
static void undocurve_free_data(UndoCurve *uc)
static bool paintcurve_undosys_step_encode(struct bContext *C, struct Main *UNUSED(bmain), UndoStep *us_p)
void ED_paintcurve_undo_push_end(bContext *C)
static void paintcurve_undosys_step_decode(struct bContext *UNUSED(C), struct Main *UNUSED(bmain), UndoStep *us_p, const eUndoStepDir UNUSED(dir), bool UNUSED(is_final))
struct PaintCurve * paint_curve
UndoRefID_PaintCurve pc_ref
void(* step_decode)(struct bContext *C, struct Main *bmain, UndoStep *us, eUndoStepDir dir, bool is_final)
bool(* step_encode)(struct bContext *C, struct Main *bmain, UndoStep *us)
void(* step_encode_init)(struct bContext *C, UndoStep *us)
void(* step_foreach_ID_ref)(UndoStep *us, UndoTypeForEachIDRefFn foreach_ID_ref_fn, void *user_data)
void(* step_free)(UndoStep *us)
bool(* poll)(struct bContext *C)
void WM_file_tag_modified(void)