diff options
author | Bastien Montagne <b.mont29@gmail.com> | 2020-03-17 13:13:14 +0300 |
---|---|---|
committer | Bastien Montagne <b.mont29@gmail.com> | 2020-03-17 13:13:14 +0300 |
commit | 90ce708ef0b086c4cd148996cb039cd7ece21457 (patch) | |
tree | 5b1b5c3d0110c339e90a6fefa4d2a04d518fca76 /source/blender/blenkernel/BKE_lib_id.h | |
parent | b87997f59b41471f7f79d9071846b2145589d9b2 (diff) |
BKE_lib_id: Add helper to swap full ID content and use proper naming.
Preliminary work for undo-speedup.
Part of T60695/D6580.
Diffstat (limited to 'source/blender/blenkernel/BKE_lib_id.h')
-rw-r--r-- | source/blender/blenkernel/BKE_lib_id.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_lib_id.h b/source/blender/blenkernel/BKE_lib_id.h index 27dd1e637f3..25ccc5bd5b6 100644 --- a/source/blender/blenkernel/BKE_lib_id.h +++ b/source/blender/blenkernel/BKE_lib_id.h @@ -217,7 +217,10 @@ bool id_single_user(struct bContext *C, bool BKE_id_copy_is_allowed(const struct ID *id); bool BKE_id_copy(struct Main *bmain, const struct ID *id, struct ID **newid); bool BKE_id_copy_ex(struct Main *bmain, const struct ID *id, struct ID **r_newid, const int flag); -void BKE_id_swap(struct Main *bmain, struct ID *id_a, struct ID *id_b); + +void BKE_lib_id_swap(struct Main *bmain, struct ID *id_a, struct ID *id_b); +void BKE_lib_id_swap_full(struct Main *bmain, struct ID *id_a, struct ID *id_b); + void id_sort_by_name(struct ListBase *lb, struct ID *id, struct ID *id_sorting_hint); void BKE_lib_id_expand_local(struct Main *bmain, struct ID *id); |