diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-01-15 13:25:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-01-15 13:36:50 +0300 |
commit | e375685e06d0b4c52a0aacb8982684e45b490d5c (patch) | |
tree | 99f832891b05d72af98b4fe68ef0b10187da8332 /source/blender/editors/include | |
parent | 01029c68d293593ccf5019793a5b577b3b522338 (diff) |
Cleanup: pass main instead of context w/ ED_editors_exit/flush_edits
Useful for calling from lower level code.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/ED_util.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/source/blender/editors/include/ED_util.h b/source/blender/editors/include/ED_util.h index 7e91b5b88c1..05131d103fc 100644 --- a/source/blender/editors/include/ED_util.h +++ b/source/blender/editors/include/ED_util.h @@ -35,17 +35,16 @@ struct bContext; struct wmOperatorType; +struct Main; /* ed_util.c */ +void ED_editors_init(struct bContext *C); +void ED_editors_exit(struct Main *bmain); +bool ED_editors_flush_edits(struct Main *bmain, bool for_render); -void ED_editors_init(struct bContext *C); -void ED_editors_exit(struct bContext *C); +void ED_spacedata_id_remap(struct ScrArea *sa, struct SpaceLink *sl, struct ID *old_id, struct ID *new_id); -bool ED_editors_flush_edits(const struct bContext *C, bool for_render); - -void ED_spacedata_id_remap(struct ScrArea *sa, struct SpaceLink *sl, struct ID *old_id, struct ID *new_id); - -void ED_OT_flush_edits(struct wmOperatorType *ot); +void ED_OT_flush_edits(struct wmOperatorType *ot); /* ************** XXX OLD CRUFT WARNING ************* */ |