diff options
author | Bastien Montagne <mont29> | 2021-11-30 17:19:30 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2022-01-17 17:40:21 +0300 |
commit | cbc6c3938d186852bebecb9847694195100dde9f (patch) | |
tree | 4b2d50a0cc87031fecaa2d7813229dd83081a272 | |
parent | ca881afef1631cdd138ccf9af090ca6fb29b3608 (diff) |
Fix T93353: Reload Library Override file loses Constraints, take II.
When adding `INSERT` operations over RNACollection items, rna diffing
code did not properly report the properties as not being equals.
This in turn triggered the 'purge unused exiting override properties'
mechanism, thus deleting the exitsting (valid) insert override property
operation.
NOTE: This should also be backported to 2.93, and probably 2.83.
Reviewed By: sybren, jbakker
Maniphest Tasks: T93353
Differential Revision: https://developer.blender.org/D13426
-rw-r--r-- | source/blender/makesrna/intern/rna_rna.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_rna.c b/source/blender/makesrna/intern/rna_rna.c index 96e6980aa1d..acc67188688 100644 --- a/source/blender/makesrna/intern/rna_rna.c +++ b/source/blender/makesrna/intern/rna_rna.c @@ -1831,6 +1831,7 @@ int rna_property_override_diff_default(Main *bmain, prev_propname_a, idx_a - 1); # endif + equals = false; } else if (is_id || is_valid_for_diffing) { if (equals || do_create) { |