39 PaintCurvePoint *points;
49 uc->points = MEM_dupalloc(pc->
points);
56 MEM_SAFE_DELETE(pc->
points);
57 pc->
points = MEM_dupalloc(uc->points);
64 MEM_SAFE_DELETE(uc->points);
142 foreach_ID_ref_fn(user_data, (
reinterpret_cast<UndoRefID *
>(&us->
pc_ref)));
#define BKE_undosys_stack_limit_steps_and_memory_defaults(ustack)
Generic array manipulation API.
#define BLI_array_is_zeroed(arr, arr_len)
Read Blender memory allocation and freeing.
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
static void undocurve_from_paintcurve(UndoCurve *uc, const PaintCurve *pc)
void ED_paintcurve_undosys_type(UndoType *ut)
UndoStack * ED_undo_stack_get()
static void undocurve_to_paintcurve(const UndoCurve *uc, PaintCurve *pc)
const UndoType * BKE_UNDOSYS_TYPE_PAINTCURVE
void ED_paintcurve_undo_push_begin(const char *name)
static void paintcurve_undosys_step_encode_init(bContext *C, UndoStep *us_p)
bool paint_curve_poll(bContext *C)
static bool paintcurve_undosys_poll(bContext *C)
static void paintcurve_undosys_step_decode(bContext *, Main *, UndoStep *us_p, const eUndoStepDir, bool)
static bool paintcurve_undosys_step_encode(bContext *C, Main *, UndoStep *us_p)
void ED_paintcurve_undo_push_end(bContext *C)
void WM_file_tag_modified()
static void paintcurve_undosys_step_free(UndoStep *us_p)
Paint * BKE_paint_get_active_from_context(const bContext *C)
Brush * BKE_paint_brush(Paint *paint)
void(*)(void *user_data, UndoRefID *id_ref) UndoTypeForEachIDRefFn
static void undocurve_free_data(UndoCurve *uc)
static void paintcurve_undosys_foreach_ID_ref(UndoStep *us_p, UndoTypeForEachIDRefFn foreach_ID_ref_fn, void *user_data)
eUndoPushReturn BKE_undosys_step_push(UndoStack *ustack, bContext *C, const char *name, UndoEncodeHints hints)
UndoStep * BKE_undosys_step_push_init_with_type(UndoStack *ustack, bContext *C, const char *name, const UndoType *ut)
UndoRefID_PaintCurve pc_ref
bool(*) poll(bContext *C)
void(*) step_free(UndoStep *us)
void(*) step_decode(bContext *C, Main *bmain, UndoStep *us, eUndoStepDir dir, bool is_final)
void(*) step_foreach_ID_ref(UndoStep *us, UndoTypeForEachIDRefFn foreach_ID_ref_fn, void *user_data)
bool(*) step_encode(bContext *C, Main *bmain, UndoStep *us)
void(*) step_encode_init(bContext *C, UndoStep *us)