diff options
author | Bastien Montagne <bastien@blender.org> | 2022-01-07 14:07:37 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-01-07 14:09:50 +0300 |
commit | ed52de948ccddf297e010dbf79dfadfcd164dae9 (patch) | |
tree | de4bf8c704dc42f5a25e801516dec7dc2020bfe7 /source/blender/makesrna/intern/rna_access_compare_override.c | |
parent | 2cc6b249c382981cee15d69db8440e2ba3dd6453 (diff) |
LibOverride: Add tag to libraries that had to be recursively resynced.
Request from studio, to help identify quickly libs that need update.
NOTE: Currently only outputing INFO log in console, display of this info
in the outliner will come in a separate commit.
Diffstat (limited to 'source/blender/makesrna/intern/rna_access_compare_override.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_access_compare_override.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_access_compare_override.c b/source/blender/makesrna/intern/rna_access_compare_override.c index e59938d7ea3..950eccdb552 100644 --- a/source/blender/makesrna/intern/rna_access_compare_override.c +++ b/source/blender/makesrna/intern/rna_access_compare_override.c @@ -1127,6 +1127,9 @@ static void rna_property_override_check_resync(Main *bmain, * self-references updated to itself, instead of still pointing to its linked source. */ (id_dst->lib == id_src->lib && id_dst != id_owner_dst))) { id_owner_dst->tag |= LIB_TAG_LIB_OVERRIDE_NEED_RESYNC; + if (ID_IS_LINKED(id_owner_src)) { + id_owner_src->lib->tag |= LIBRARY_TAG_RESYNC_REQUIRED; + } CLOG_INFO(&LOG, 3, "Local override %s detected as needing resync", id_owner_dst->name); } } |