From 547cb5e264eb1f6b03c7327e1acae6e4f2b0187a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 19 Jan 2019 00:48:00 +1100 Subject: Fix/workaround: Undo erase all dyntopo changes Memfile undo isn't compatible with sculpt or edit-mode. This didn't work in 2.7x, so best disable memfile undo for now in situations where it's going to loose data or crash. --- source/blender/editors/include/ED_undo.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/editors/include') diff --git a/source/blender/editors/include/ED_undo.h b/source/blender/editors/include/ED_undo.h index 7995644f39e..677d64acc7d 100644 --- a/source/blender/editors/include/ED_undo.h +++ b/source/blender/editors/include/ED_undo.h @@ -54,6 +54,8 @@ void ED_undo_operator_repeat_cb_evt(struct bContext *C, void *arg_op, int arg bool ED_undo_is_valid(const struct bContext *C, const char *undoname); +bool ED_undo_is_memfile_compatible(const struct bContext *C); + struct UndoStack *ED_undo_stack_get(void); /* helpers */ -- cgit v1.2.3