diff options
author | Bastien Montagne <bastien@blender.org> | 2021-09-06 18:37:04 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2021-09-07 11:18:49 +0300 |
commit | 8cc3d2d6f51f9f05c568104be17c6643edfff101 (patch) | |
tree | abeb2018c925f0ee4c184dc141d59a9454d475ec /source/blender/blenkernel/BKE_lib_id.h | |
parent | d7d8eb7de468dc2b3940d1ebb81cb16cdadbce3f (diff) |
ID management: add options to force make local or force copy IDs when making them local.
This is to be used when calling code already knows whether the 'made
local' linked ID should be copied, or can directly be converted to a
local one.
Currently unused , this is preparation for rewrite of append code.
Diffstat (limited to 'source/blender/blenkernel/BKE_lib_id.h')
-rw-r--r-- | source/blender/blenkernel/BKE_lib_id.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_lib_id.h b/source/blender/blenkernel/BKE_lib_id.h index a50faedcc3c..7fa21cc0656 100644 --- a/source/blender/blenkernel/BKE_lib_id.h +++ b/source/blender/blenkernel/BKE_lib_id.h @@ -237,6 +237,11 @@ enum { /** Making that ID local is part of making local a whole library. */ LIB_ID_MAKELOCAL_FULL_LIBRARY = 1 << 0, + /** In case caller code already knows this ID should be made local without copying. */ + LIB_ID_MAKELOCAL_FORCE_LOCAL = 1 << 1, + /** In case caller code already knows this ID should be made local using copying. */ + LIB_ID_MAKELOCAL_FORCE_COPY = 1 << 2, + /* Special type-specific options. */ /** For Objects, do not clear the proxy pointers while making the data-block local. */ LIB_ID_MAKELOCAL_OBJECT_NO_PROXY_CLEARING = 1 << 16, |