67 if (len_src != len_dst) {
142 ult->
dvert =
nullptr;
147static int validate_undoLatt(
void *data,
void *edata)
214 for (
uint i = 0; i < objects.size(); i++) {
251 "name='%s', failed to enter edit-mode for object '%s', undo state invalid",
299 ut->
name =
"Edit Lattice";
Scene * CTX_data_scene(const bContext *C)
wmWindowManager * CTX_wm_manager(const bContext *C)
ViewLayer * CTX_data_view_layer(const bContext *C)
void BKE_view_layer_synced_ensure(const Scene *scene, ViewLayer *view_layer)
Object * BKE_view_layer_edit_object_get(const ViewLayer *view_layer)
General operations, lookup, etc. for blender objects.
bool BKE_object_is_in_editmode(const Object *ob)
@ UNDOTYPE_FLAG_NEED_CONTEXT_FOR_ENCODE
void(*)(void *user_data, UndoRefID *id_ref) UndoTypeForEachIDRefFn
Generic array manipulation API.
#define BLI_array_is_zeroed(arr, arr_len)
#define CLOG_ERROR(clg_ref,...)
void DEG_id_tag_update(ID *id, unsigned int flags)
Object is a sort of wrapper for general info.
void ED_undo_object_set_active_or_warn(Scene *scene, ViewLayer *view_layer, Object *ob, const char *info, CLG_LogRef *log)
void ED_undo_object_editmode_restore_helper(Scene *scene, ViewLayer *view_layer, Object **object_array, uint object_array_len, uint object_array_stride)
blender::Vector< Object * > ED_undo_editmode_objects_from_view_layer(const Scene *scene, ViewLayer *view_layer)
void ED_undo_object_editmode_validate_scene_from_windows(wmWindowManager *wm, const Scene *scene_ref, Scene **scene_p, ViewLayer **view_layer_p)
Read Guarded memory(de)allocation.
static void undolatt_to_editlatt(UndoLattice *ult, EditLatt *editlatt)
static bool lattice_undosys_poll(bContext *C)
static void lattice_undosys_step_decode(bContext *C, Main *bmain, UndoStep *us_p, const eUndoStepDir, bool)
static void lattice_undosys_step_free(UndoStep *us_p)
void ED_lattice_undosys_type(UndoType *ut)
static void undolatt_free_data(UndoLattice *ult)
static void lattice_undosys_foreach_ID_ref(UndoStep *us_p, UndoTypeForEachIDRefFn foreach_ID_ref_fn, void *user_data)
static bool lattice_undosys_step_encode(bContext *C, Main *bmain, UndoStep *us_p)
static void * undolatt_from_editlatt(UndoLattice *ult, EditLatt *editlatt)
static Object * editlatt_object_from_context(bContext *C)
void *(* MEM_mallocN)(size_t len, const char *str)
void MEM_freeN(void *vmemh)
void *(* MEM_callocN)(size_t len, const char *str)
void *(* MEM_dupallocN)(const void *vmemh)
UndoRefID_Object obedit_ref
UndoRefID_Scene scene_ref
LatticeUndoStep_Elem * elems
struct MDeformVert * dvert
struct EditLatt * editlatt
bool is_memfile_undo_flush_needed
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(* step_decode)(bContext *C, Main *bmain, UndoStep *us, eUndoStepDir dir, bool is_final)
bool(* step_encode)(bContext *C, Main *bmain, UndoStep *us)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)