diff options
author | Bastien Montagne <bastien@blender.org> | 2020-06-30 12:33:36 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-06-30 13:19:11 +0300 |
commit | deb01eb1991e49fb912ede1ef036710e51b25fc5 (patch) | |
tree | 31c0eb4afd9cd940070e68b95f1421c5c0bfefc7 /source/blender/blenloader | |
parent | 34027506f855ff506151953311d762235122b66d (diff) |
LibOverride: Add concept of 'embedded'/'virtual' override.
IDs like embedded ones (master collections, root node trees) cannot be
linked, and thus cannot be real override themselves.
Since they are managed by their owner ID, that one will also have the
overrides for their locally edited properties.
We still need a way to mark them as overridden though, for various UI
and override-internal purposes, this is done using a new ID flag.
Note that since Shae Keys are not linkable, and their pointers are not
editable in RNA, they are also considered as embedded from override
point of view.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index 86e878147e5..4e0325e72fa 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -4071,7 +4071,7 @@ static bool write_file_handle(Main *mainvar, (id->tag & (LIB_TAG_NO_MAIN | LIB_TAG_NO_USER_REFCOUNT | LIB_TAG_NOT_ALLOCATED)) == 0); const bool do_override = !ELEM(override_storage, NULL, bmain) && - ID_IS_OVERRIDE_LIBRARY(id); + ID_IS_OVERRIDE_LIBRARY_REAL(id); if (do_override) { BKE_lib_override_library_operations_store_start(bmain, override_storage, id); |