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
This commit is contained in:
Bastien Montagne 2021-11-30 15:19:30 +01:00 committed by Philipp Oeser
parent 654967b0e0
commit ca6acceb60
Notes: blender-bot 2023-02-13 23:17:13 +01:00
Referenced by issue #88449: Blender LTS: Maintenance Task 2.93
Referenced by issue #88449, Blender LTS: Maintenance Task 2.93
Referenced by issue #93353, Reload Library Override file loses Constraints
1 changed files with 2 additions and 0 deletions

View File

@ -1949,6 +1949,8 @@ int rna_property_override_diff_default(Main *bmain,
idx_a - 1);
# endif
op = NULL;
equals = false;
}
else if (is_id || is_valid_for_diffing) {
if (equals || do_create) {