Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/blender_undo.c
| Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | bool BKE_memfile_undo_decode(MemFileUndoData *mfu, | ||||
| /* Restore, bmain has been re-allocated. */ | /* Restore, bmain has been re-allocated. */ | ||||
| bmain = CTX_data_main(C); | bmain = CTX_data_main(C); | ||||
| BLI_strncpy(bmain->name, mainstr, sizeof(bmain->name)); | BLI_strncpy(bmain->name, mainstr, sizeof(bmain->name)); | ||||
| G.fileflags = fileflags; | G.fileflags = fileflags; | ||||
| if (success) { | if (success) { | ||||
| /* important not to update time here, else non keyed transforms are lost */ | /* important not to update time here, else non keyed transforms are lost */ | ||||
| DEG_on_visible_update(bmain, false); | DEG_tag_on_visible_update(bmain, false); | ||||
| } | } | ||||
| return success; | return success; | ||||
| } | } | ||||
| MemFileUndoData *BKE_memfile_undo_encode(Main *bmain, MemFileUndoData *mfu_prev) | MemFileUndoData *BKE_memfile_undo_encode(Main *bmain, MemFileUndoData *mfu_prev) | ||||
| { | { | ||||
| MemFileUndoData *mfu = MEM_callocN(sizeof(MemFileUndoData), __func__); | MemFileUndoData *mfu = MEM_callocN(sizeof(MemFileUndoData), __func__); | ||||
| ▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines | |||||