diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-03-08 16:53:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-03-08 16:55:55 +0300 |
commit | cfd11af9819433c5b83359b72f002fcd59fdc1ab (patch) | |
tree | 6b2113874e48fcf583979739f20d1dfe8f686c93 /source/blender/blenloader/intern/readfile.h | |
parent | 09a8f5ebcab446758b37d5359dff77ea4edcf7d6 (diff) |
readfile: add id_tag_extra argument
This allows adding ID tags when linking/loading data.
This is needed to implement loading non 'G.main' ID data-blocks,
see D10612.
Diffstat (limited to 'source/blender/blenloader/intern/readfile.h')
-rw-r--r-- | source/blender/blenloader/intern/readfile.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.h b/source/blender/blenloader/intern/readfile.h index 7c14c7a19bf..9682b5456d2 100644 --- a/source/blender/blenloader/intern/readfile.h +++ b/source/blender/blenloader/intern/readfile.h @@ -120,6 +120,14 @@ typedef struct FileData { /** Optionally skip some data-blocks when they're not needed. */ eBLOReadSkip skip_flags; + /** + * Tag to apply to all loaded ID data-blocks. + * + * \note This is initialized from #LibraryLink_Params.id_tag_extra since passing it as an + * argument would need an additional argument to be passed around when expanding library data. + */ + int id_tag_extra; + struct OldNewMap *datamap; struct OldNewMap *globmap; struct OldNewMap *libmap; |