115 ID *
id = *id_pointer;
117 bool do_stop_iter =
true;
118 if (self_id->id_type() ==
ID_OB) {
119 Object *ob_self = id_cast<Object *>(self_id);
121 if (ob_self->
data ==
id) {
123 if (ob_self->
pose !=
nullptr) {
131 do_stop_iter =
false;
147 bool use_old_bmain_data =
true;
150 use_old_bmain_data =
false;
158 use_old_bmain_data =
false;
170 if (us_next !=
nullptr) {
172 use_old_bmain_data =
false;
179 GHash *depsgraphs =
nullptr;
180 if (use_old_bmain_data) {
197 us_iter->is_applied =
false;
199 for (
UndoStep *us_iter = us_p; us_iter; us_iter = us_iter->
prev) {
203 us_iter->is_applied =
true;
214 if (use_old_bmain_data) {
258 if (recalc_flags != 0) {
263 if (nodetree !=
nullptr) {
268 if (recalc_flags != 0) {
273 Scene *scene = id_cast<Scene *>(
id);
279 if (recalc_flags != 0) {
295 id->recalc_after_undo_push = 0;
297 if (nodetree !=
nullptr) {
301 Scene *scene = id_cast<Scene *>(
id);
318 if (us_p->
next !=
nullptr) {
320 if (us_next_p !=
nullptr) {
#define FOREACH_MAIN_ID_END
#define FOREACH_MAIN_ID_BEGIN(_bmain, _id)
#define BKE_UNDOSYS_TYPE_IS_MEMFILE_SKIP(ty)
ID and Library types, which are fundamental for SDNA.
#define ID_IS_LINKED(_id)
Object groups, one object can be in many groups at once.
Object is a sort of wrapper for general info.
#define USER_DEVELOPER_TOOL_TEST(userdef, member)
#define UNUSED_VARS_NDEBUG(...)
Depsgraph * preview_depsgraph
CompositorRuntime compositor
SequencerRuntime sequencer
bool is_enabled(const Scene &scene, ExecutionMode mode)
bNodeTree * node_tree_from_id(ID *id)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
bool ED_undo_is_memfile_compatible(const bContext *C)
UndoStep * BKE_undosys_step_same_type_next(UndoStep *us)
UndoStack * ED_undo_stack_get()
void DEG_graph_free(Depsgraph *graph)
void ED_preview_kill_jobs_for_undo(wmWindowManager *wm, Main *bmain)
bool BKE_memfile_undo_decode(MemFileUndoData *mfu, eUndoStepDir undo_direction, bool use_old_bmain_data, bContext *C)
static bool memfile_undosys_step_encode(bContext *, Main *bmain, UndoStep *us_p)
static void memfile_undosys_step_decode(bContext *C, Main *bmain, UndoStep *us_p, const eUndoStepDir undo_direction, bool)
MemFileUndoData * BKE_memfile_undo_encode(Main *bmain, MemFileUndoData *mfu_prev)
void DEG_id_tag_update_ex(Main *bmain, ID *id, unsigned int flags)
static void memfile_undosys_step_free(UndoStep *us_p)
void ED_editors_init_for_undo(Main *bmain)
BMesh const char void * data
wmWindowManager * CTX_wm_manager(const bContext *C)
void BLO_memfile_merge(MemFile *first, MemFile *second)
void ED_memfile_undosys_type(UndoType *ut)
void ED_editors_exit(Main *bmain, bool do_undo_system)
const UndoType * BKE_UNDOSYS_TYPE_MEMFILE
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
Main * CTX_data_main(const bContext *C)
void BKE_scene_undo_depsgraphs_restore(Main *bmain, GHash *depsgraph_extract)
static int memfile_undosys_step_id_reused_cb(LibraryIDLinkCallbackData *cb_data)
@ ID_TAG_UNDO_OLD_ID_REREAD_IN_PLACE
@ ID_TAG_UNDO_OLD_ID_REUSED_NOUNDO
@ ID_TAG_UNDO_OLD_ID_REUSED_UNCHANGED
GHash * BKE_scene_undo_depsgraphs_extract(Main *bmain)
Scene * CTX_data_scene(const bContext *C)
bool ED_undosys_autosave_compatible(UndoStack *ustack)
UndoStep * BKE_undosys_step_find_by_type(UndoStack *ustack, const UndoType *ut)
const UndoType * BKE_UNDOSYS_TYPE_IMAGE
void BKE_library_foreach_ID_link(Main *bmain, ID *id, FunctionRef< LibraryIDLinkCallback > callback, void *user_data, LibraryForeachIDFlag flag)
void BKE_memfile_undo_free(MemFileUndoData *mfu)
bool ED_editors_flush_edits_ex(Main *bmain, bool check_needs_flush)
static bool memfile_undosys_poll(bContext *C)
void ED_undosys_stack_memfile_id_changed_tag(UndoStack *ustack, ID *id)
unsigned int recalc_after_undo_push
bool is_memfile_undo_flush_needed
bool need_preview_render_restart
bool use_memfile_full_barrier
ListBaseT< MemFileChunk > chunks
struct Collection * master_collection
bke::SceneRuntime * runtime
bool(*) poll(bContext *C)
void(*) step_free(UndoStep *us)
void(*) step_decode(bContext *C, Main *bmain, UndoStep *us, eUndoStepDir dir, bool is_final)
bool(*) step_encode(bContext *C, Main *bmain, UndoStep *us)