diff options
author | Bastien Montagne <bastien@blender.org> | 2022-01-05 18:30:15 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-01-05 19:30:22 +0300 |
commit | bfb760e16acbc33661739154f0ab8f5505987d1d (patch) | |
tree | 1058bb182647e3e5a364509e868344f419899e6b /source/blender/makesrna/intern/rna_ID.c | |
parent | 1403f034ffd4b394fc8a9b8adec34698dcec891e (diff) |
Fix T94650: LibOverride: Bad handling of (auto)resync in case of single override.
Overrides that are not created as part of an override hierarchy should
not be handled through (auto)resync at all. users are responsible to
hanlde those updates if they need it.
This is achieved by flagging overrides created outside of a hierarchical
process accordingly, and skipping them during resync process.
Diffstat (limited to 'source/blender/makesrna/intern/rna_ID.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_ID.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_ID.c b/source/blender/makesrna/intern/rna_ID.c index be612a1602b..c43b80204cf 100644 --- a/source/blender/makesrna/intern/rna_ID.c +++ b/source/blender/makesrna/intern/rna_ID.c @@ -1808,6 +1808,14 @@ static void rna_def_ID_override_library(BlenderRNA *brna) RNA_def_pointer( srna, "reference", "ID", "Reference ID", "Linked ID used as reference by this override"); + prop = RNA_def_boolean(srna, + "is_in_hierarchy", + true, + "Is In Hierarchy", + "Whether this library override is defined as part of a library " + "hierarchy, or as a single, isolated and autonomous override"); + RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", IDOVERRIDE_LIBRARY_FLAG_NO_HIERARCHY); + prop = RNA_def_collection(srna, "properties", "IDOverrideLibraryProperty", |