diff options
author | Bastien Montagne <bastien@blender.org> | 2021-01-06 20:06:11 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2021-01-06 20:07:09 +0300 |
commit | 3028de9527a0a7e2772fd87fcf1abbf823698371 (patch) | |
tree | ee0498f7c5109dfde30246675009984392f2ec33 /source/blender/blenkernel/intern/undo_system.c | |
parent | 5cdf279ef46fa8672d086d1f57025e31f477accc (diff) |
UndoType: Refactor: replace `use_context` boolean by a bitflag.
We will soon need more options here, sinmpler and cleaner to use a
bitflag then.
Diffstat (limited to 'source/blender/blenkernel/intern/undo_system.c')
-rw-r--r-- | source/blender/blenkernel/intern/undo_system.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/undo_system.c b/source/blender/blenkernel/intern/undo_system.c index 0713a2d6729..5544e151ddb 100644 --- a/source/blender/blenkernel/intern/undo_system.c +++ b/source/blender/blenkernel/intern/undo_system.c @@ -501,7 +501,7 @@ UndoPushReturn BKE_undosys_step_push_with_type(UndoStack *ustack, const char *name, const UndoType *ut) { - BLI_assert(ut->use_context_for_encode == false || C != NULL); + BLI_assert((ut->flags & UNDOTYPE_FLAG_NEED_CONTEXT_FOR_ENCODE) == 0 || C != NULL); UNDO_NESTED_ASSERT(false); undosys_stack_validate(ustack, false); |