From ac2d342d88299d6fb61492dc824aa006e3bd7557 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 30 Jan 2020 16:46:09 +1100 Subject: Cleanup: ED_editors_flush_* functions - Remove the only_render arg from ED_editors_flush_edits was only used in one place, the '_ex' version can be used instead. - Split out the single object version of this function as currently flushing is being done in-line, often only accounting for edit-mode, ignoring sculpt mode for e.g. --- source/blender/editors/include/ED_util.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (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 003e84bbf05..8cce8fa973a 100644 --- a/source/blender/editors/include/ED_util.h +++ b/source/blender/editors/include/ED_util.h @@ -35,8 +35,14 @@ 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_for_object_ex(struct Main *bmain, + struct Object *ob, + bool for_render, + bool check_needs_flush); +bool ED_editors_flush_edits_for_object(struct Main *bmain, struct Object *ob); + 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); +bool ED_editors_flush_edits(struct Main *bmain); void ED_spacedata_id_remap(struct ScrArea *sa, struct SpaceLink *sl, -- cgit v1.2.3