Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/undo_system.c
| Show First 20 Lines • Show All 445 Lines • ▼ Show 20 Lines | #endif | ||||
| * (see #MemFileUndoStep). */ | * (see #MemFileUndoStep). */ | ||||
| undosys_stack_clear_all_first(ustack, us->prev, us_exclude); | undosys_stack_clear_all_first(ustack, us->prev, us_exclude); | ||||
| } | } | ||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||
| UndoStep *BKE_undosys_step_push_init_with_type(UndoStack *ustack, | UndoStep *BKE_undosys_step_push_init_with_type(UndoStack *ustack, | ||||
| bContext *C, | const bContext *C, | ||||
| const char *name, | const char *name, | ||||
| const UndoType *ut) | const UndoType *ut) | ||||
| { | { | ||||
| UNDO_NESTED_ASSERT(false); | UNDO_NESTED_ASSERT(false); | ||||
| /* We could detect and clean this up (but it should never happen!). */ | /* We could detect and clean this up (but it should never happen!). */ | ||||
| BLI_assert(ustack->step_init == NULL); | BLI_assert(ustack->step_init == NULL); | ||||
| if (ut->step_encode_init) { | if (ut->step_encode_init) { | ||||
| undosys_stack_validate(ustack, false); | undosys_stack_validate(ustack, false); | ||||
| ▲ Show 20 Lines • Show All 479 Lines • Show Last 20 Lines | |||||