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.
This commit is contained in:
Bastien Montagne 2020-11-20 11:41:15 +01:00
parent 07db110add
commit 96995b2343
1 changed files with 1 additions and 1 deletions

View File

@ -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,