87 for (nu = undobase->
first; nu; nu = nu->
next) {
129 for (nu = nubase->
first; nu; nu = nu->
next) {
196 return (obedit !=
NULL);
206 uint objects_len = 0;
212 for (
uint i = 0; i < objects_len; i++) {
249 "name='%s', failed to enter edit-mode for object '%s', undo state invalid",
296 ut->
name =
"Edit Curve";
typedef float(TangentPoint)[2]
struct AnimData * BKE_animdata_from_id(const struct ID *id)
struct Scene * CTX_data_scene(const bContext *C)
struct ViewLayer * CTX_data_view_layer(const bContext *C)
struct ListBase * BKE_curve_editNurbs_get(struct Curve *cu)
struct Nurb * BKE_nurb_duplicate(const struct Nurb *nu)
void BKE_nurbList_free(struct ListBase *lb)
void BKE_curve_editNurb_keyIndex_free(struct GHash **keyindex)
void BKE_fcurves_free(ListBase *list)
void BKE_fcurves_copy(ListBase *dst, ListBase *src)
General operations, lookup, etc. for blender objects.
bool BKE_object_is_in_editmode(const struct Object *ob)
@ UNDOTYPE_FLAG_NEED_CONTEXT_FOR_ENCODE
void(* UndoTypeForEachIDRefFn)(void *user_data, struct UndoRefID *id_ref)
Generic array manipulation API.
#define BLI_array_is_zeroed(arr, arr_len)
void BLI_addtail(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
#define CLOG_ERROR(clg_ref,...)
void DEG_id_tag_update(struct ID *id, int flag)
struct BezTriple BezTriple
Object is a sort of wrapper for general info.
#define OBEDIT_FROM_VIEW_LAYER(view_layer)
void ED_undo_object_editmode_restore_helper(struct bContext *C, struct Object **object_array, uint object_array_len, uint object_array_stride)
void ED_undo_object_set_active_or_warn(struct Scene *scene, struct ViewLayer *view_layer, struct Object *ob, const char *info, struct CLG_LogRef *log)
struct Object ** ED_undo_editmode_objects_from_view_layer(struct ViewLayer *view_layer, uint *r_len)
Read Guarded memory(de)allocation.
struct GHash * ED_curve_keyindex_hash_duplicate(struct GHash *keyindex)
void ED_curve_keyindex_update_nurb(struct EditNurb *editnurb, struct Nurb *nu, struct Nurb *newnu)
int ED_curve_updateAnimPaths(Main *bmain, Curve *cu)
static void curve_undosys_foreach_ID_ref(UndoStep *us_p, UndoTypeForEachIDRefFn foreach_ID_ref_fn, void *user_data)
static Object * editcurve_object_from_context(bContext *C)
static void curve_undosys_step_free(UndoStep *us_p)
static bool curve_undosys_poll(bContext *C)
static bool curve_undosys_step_encode(struct bContext *C, struct Main *bmain, UndoStep *us_p)
void ED_curve_undosys_type(UndoType *ut)
static void undocurve_to_editcurve(Main *bmain, UndoCurve *ucu, Curve *cu, short *r_shapenr)
struct CurveUndoStep_Elem CurveUndoStep_Elem
static void undocurve_free_data(UndoCurve *uc)
static void undocurve_from_editcurve(UndoCurve *ucu, Curve *cu, const short shapenr)
struct CurveUndoStep CurveUndoStep
static void curve_undosys_step_decode(struct bContext *C, struct Main *bmain, UndoStep *us_p, const eUndoStepDir UNUSED(dir), bool UNUSED(is_final))
void(* MEM_freeN)(void *vmemh)
void *(* MEM_callocN)(size_t len, const char *str)
struct UndoCurve UndoCurve
UndoRefID_Object obedit_ref
CurveUndoStep_Elem * elems
char is_memfile_undo_flush_needed
struct UndoCurve::@341 obedit
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_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_event_add_notifier(const bContext *C, uint type, void *reference)