diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-01-30 08:46:09 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-01-30 08:46:09 +0300 |
commit | ac2d342d88299d6fb61492dc824aa006e3bd7557 (patch) | |
tree | 3d7057fce1939f4bd3a436bb664741ffda49288d /source/blender/editors/include/ED_util.h | |
parent | 1d28ff7f2bd100e7921bfc02e9ad20f78847a5be (diff) |
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.
Diffstat (limited to 'source/blender/editors/include/ED_util.h')
-rw-r--r-- | source/blender/editors/include/ED_util.h | 8 |
1 files changed, 7 insertions, 1 deletions
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, |