Fix (unreported) broken IDarray case in IDP_EqualsProperties_ex.
authorBastien Montagne <montagne29@wanadoo.fr>
Wed, 14 Mar 2018 16:53:29 +0000 (17:53 +0100)
committerBastien Montagne <montagne29@wanadoo.fr>
Wed, 14 Mar 2018 16:53:29 +0000 (17:53 +0100)
For IDProps IDarray, IDP_EqualsProperties was called for each item,
instead of IDP_EqualsProperties_ex, discarding value of `is_strict`
option.

Probably not an issue with current code, though.

source/blender/blenkernel/intern/idprop.c

index 45b41fa..110e3f8 100644 (file)
@@ -879,7 +879,7 @@ bool IDP_EqualsProperties_ex(IDProperty *prop1, IDProperty *prop2, const bool is
                                return false;
 
                        for (i = 0; i < prop1->len; i++)
-                               if (!IDP_EqualsProperties(&array1[i], &array2[i]))
+                               if (!IDP_EqualsProperties_ex(&array1[i], &array2[i], is_strict))
                                        return false;
                        return true;
                }