Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2021-09-23 11:43:31 +0300
committerBastien Montagne <bastien@blender.org>2021-09-23 12:01:00 +0300
commit3042994c91667f9c8a1ecadc11e69c012c33d581 (patch)
tree304a8b52bf2abf07661ad73254741f74d0c02e1e /source/blender/blenloader/BLO_readfile.h
parent12924ed573c9c4faf025a7cd2f61c53732667ad5 (diff)
Link/Append: Refactor flags.
Flags controlling link/append code are split between two enums, one in `DNA_space_types.h` and one in `BLO_readfile.h`. This commit: - Moves flags exclusively used in WM and BLO code to `eBLOLibLinkFlags` in `BLO_readfile.h`. Flags in `eFileSel_Params_Flag` from `DNA_space_types.h` are now only the ones effectively used by the file browser editor code too. - Fixes some internal utils in `readfile.c` still taking `short` flag parameter instead of proper `int` one. NOTE: there are a few other flags that could probably be moved to `eBLOLibLinkFlags` (at the very least `FILE_LINK`, probably also `FILE_AUTOSELECT` and `FILE_ACTIVE_COLLECTION`), since those are not effectively used by the file browser, and control linking/appending behavior, not filebrowser behavior. However for now think it's safer to not touch that.
Diffstat (limited to 'source/blender/blenloader/BLO_readfile.h')
-rw-r--r--source/blender/blenloader/BLO_readfile.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenloader/BLO_readfile.h b/source/blender/blenloader/BLO_readfile.h
index 4b7f29dd7dc..1f0203b45e9 100644
--- a/source/blender/blenloader/BLO_readfile.h
+++ b/source/blender/blenloader/BLO_readfile.h
@@ -209,6 +209,14 @@ typedef enum eBLOLibLinkFlags {
* don't need to remember to set this flag.
*/
BLO_LIBLINK_NEEDS_ID_TAG_DOIT = 1 << 18,
+ /** Set fake user on appended IDs. */
+ BLO_LIBLINK_APPEND_SET_FAKEUSER = 1 << 19,
+ /** Append (make local) also indirect dependencies of appendeds IDs. */
+ BLO_LIBLINK_APPEND_RECURSIVE = 1 << 20,
+ /** Instantiate object data IDs (i.e. create objects for them if needed). */
+ BLO_LIBLINK_OBDATA_INSTANCE = 1 << 21,
+ /** Instantiate collections as empties, instead of linking them into current view layer. */
+ BLO_LIBLINK_COLLECTION_INSTANCE = 1 << 22,
} eBLOLibLinkFlags;
/**