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 Bastien Montagne
parent 4b971bb87c
commit de7f1e8e07

View File

@@ -1941,6 +1941,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) {