diff options
author | Bastien Montagne <bastien@blender.org> | 2021-11-30 19:09:35 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2021-11-30 19:18:26 +0300 |
commit | b9f54dd48a7626340a8de90b1e8f186139bf525e (patch) | |
tree | ccb077860e553b69ed9adb31b33b968833dd6022 /source/blender/blenkernel/BKE_blendfile_link_append.h | |
parent | 581fb2da10a6143bab2ac1538d4eed9f910aec2a (diff) |
LibLink/Append: Add a utils to link/append all ID of given types from a given library.
This will be used by the copy/paste code.
Part of T91414: Unify link/append between WM operators and BPY context
manager API, and cleanup usages of `BKE_library_make_local`.
Diffstat (limited to 'source/blender/blenkernel/BKE_blendfile_link_append.h')
-rw-r--r-- | source/blender/blenkernel/BKE_blendfile_link_append.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_blendfile_link_append.h b/source/blender/blenkernel/BKE_blendfile_link_append.h index cda6a620326..f8db1b2c435 100644 --- a/source/blender/blenkernel/BKE_blendfile_link_append.h +++ b/source/blender/blenkernel/BKE_blendfile_link_append.h @@ -58,6 +58,14 @@ struct BlendfileLinkAppendContextItem *BKE_blendfile_link_append_context_item_ad const char *idname, const short idcode, void *userdata); + +#define BLENDFILE_LINK_APPEND_INVALID -1 +int BKE_blendfile_link_append_context_item_idtypes_from_library_add( + struct BlendfileLinkAppendContext *lapp_context, + struct ReportList *reports, + const uint64_t id_types_filter, + const int library_index); + void BKE_blendfile_link_append_context_item_library_index_enable( struct BlendfileLinkAppendContext *lapp_context, struct BlendfileLinkAppendContextItem *item, |