diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-01-30 12:44:15 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-01-30 12:44:15 +0300 |
commit | fbfe360cb13df5a6b47a86bf4cabd16e3bd92262 (patch) | |
tree | 14e86dca0250350c95eba472f56a916010b11b0d /source/blender/blenkernel/BKE_undo_system.h | |
parent | a1ae04d15a9faaa9b4dc59e8a5bec02a7c69b255 (diff) |
Fix T60974: Dyntopo crash on undo after object deleted
Add the ability for undo steps to request memfile undo step added after
them, useful for mode switching, where we need the data to exist for
undo to enter the mode.
Diffstat (limited to 'source/blender/blenkernel/BKE_undo_system.h')
-rw-r--r-- | source/blender/blenkernel/BKE_undo_system.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_undo_system.h b/source/blender/blenkernel/BKE_undo_system.h index dc8cabc52c7..2863642a3e0 100644 --- a/source/blender/blenkernel/BKE_undo_system.h +++ b/source/blender/blenkernel/BKE_undo_system.h @@ -73,6 +73,8 @@ typedef struct UndoStep { size_t data_size; /** Users should never see this step (only use for internal consistency). */ bool skip; + /** Some situations require the global state to be stored, edge cases when exiting modes. */ + bool use_memfile_step; /* Over alloc 'type->struct_size'. */ } UndoStep; |