From de7f1e8e070be93daf8e1a2c7c96f94cabc34867 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Tue, 30 Nov 2021 15:19:30 +0100 Subject: 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 --- source/blender/makesrna/intern/rna_rna.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/makesrna') diff --git a/source/blender/makesrna/intern/rna_rna.c b/source/blender/makesrna/intern/rna_rna.c index e5009305fe5..285f6365ea1 100644 --- a/source/blender/makesrna/intern/rna_rna.c +++ b/source/blender/makesrna/intern/rna_rna.c @@ -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) { -- cgit v1.2.3