Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-12-14 20:24:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2014-12-14 20:24:13 +0300
commitc1d3532d2cbf85e1339026b7f77a4e8730124a50 (patch)
tree411fcb24fbdab0df8734359cc120f75e1904cc48 /source/blender/blenkernel/intern/idprop.c
parent17253bec0639a910b3f8e5875d1b5b5605123757 (diff)
Fix for idproperty comparison
comparing arrays had flipped logic
Diffstat (limited to 'source/blender/blenkernel/intern/idprop.c')
-rw-r--r--source/blender/blenkernel/intern/idprop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/idprop.c b/source/blender/blenkernel/intern/idprop.c
index 679906b3a91..2b99b5f4620 100644
--- a/source/blender/blenkernel/intern/idprop.c
+++ b/source/blender/blenkernel/intern/idprop.c
@@ -810,7 +810,7 @@ bool IDP_EqualsProperties_ex(IDProperty *prop1, IDProperty *prop2, const bool is
if (prop1->len == prop2->len && prop1->subtype == prop2->subtype) {
return (memcmp(IDP_Array(prop1),
IDP_Array(prop2),
- idp_size_table[(int)prop1->subtype] * (size_t)prop1->len));
+ idp_size_table[(int)prop1->subtype] * (size_t)prop1->len) == 0);
}
return false;
case IDP_GROUP: