diff options
author | Bastien Montagne <bastien@blender.org> | 2020-11-20 13:41:15 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-11-20 13:41:15 +0300 |
commit | 96995b2343d96c75e3d03dbfaf8785fb8b28bfc5 (patch) | |
tree | 5bc4be98838858daf0e11f4b289ec28d6a936279 /source | |
parent | 07db110add161c50b48cb7bc8e1c77f2b12b2c76 (diff) |
Fix (unreported) bug in liboverride diffing code for collection item insertion.
In case we do not use names, code adding new insert operations in
collections was broken.
Not a proble in practice so far, since this case was not yet in use, but
will be soon with NLA overrides.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/makesrna/intern/rna_rna.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_rna.c b/source/blender/makesrna/intern/rna_rna.c index 45406c3ddd3..eae1c7bc223 100644 --- a/source/blender/makesrna/intern/rna_rna.c +++ b/source/blender/makesrna/intern/rna_rna.c @@ -1879,7 +1879,7 @@ int rna_property_override_diff_default(Main *bmain, BKE_lib_override_library_property_operation_get(op, IDOVERRIDE_LIBRARY_OP_INSERT_AFTER, NULL, - prev_propname_a, + no_prop_name ? NULL : prev_propname_a, -1, idx_a - 1, true, |