From 79b703bb635ea719bbe31c1ece9884d2d298eaef Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 7 Nov 2019 16:52:03 +1100 Subject: Fix T69822: Switching sculpt objects breaks undo This introduces object mode tagging for data which hasn't yet been written back to the ID data. Now when selecting other sculpt objects, the original objects data is flushed back to the ID before writing a memfile undo step. --- source/blender/editors/include/ED_util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/editors/include/ED_util.h') diff --git a/source/blender/editors/include/ED_util.h b/source/blender/editors/include/ED_util.h index 87f57b4e144..003e84bbf05 100644 --- a/source/blender/editors/include/ED_util.h +++ b/source/blender/editors/include/ED_util.h @@ -34,6 +34,8 @@ struct wmOperatorType; void ED_editors_init_for_undo(struct Main *bmain); void ED_editors_init(struct bContext *C); void ED_editors_exit(struct Main *bmain, bool do_undo_system); + +bool ED_editors_flush_edits_ex(struct Main *bmain, bool for_render, bool check_needs_flush); bool ED_editors_flush_edits(struct Main *bmain, bool for_render); void ED_spacedata_id_remap(struct ScrArea *sa, -- cgit v1.2.3