Fix T60974: Dyntopo crash on undo after object deleted
authorCampbell Barton <ideasman42@gmail.com>
Wed, 30 Jan 2019 09:44:15 +0000 (20:44 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 30 Jan 2019 09:44:15 +0000 (20:44 +1100)
commitfbfe360cb13df5a6b47a86bf4cabd16e3bd92262
tree14e86dca0250350c95eba472f56a916010b11b0d
parenta1ae04d15a9faaa9b4dc59e8a5bec02a7c69b255
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.
source/blender/blenkernel/BKE_undo_system.h
source/blender/blenkernel/intern/undo_system.c
source/blender/editors/sculpt_paint/sculpt_undo.c