diff options
author | Hans Goudey <h.goudey@me.com> | 2021-12-29 19:23:53 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-12-29 19:23:53 +0300 |
commit | 279085e18e69735b30dae0e612cb7a160a734982 (patch) | |
tree | 5ac31f96b950b4500c524255e3b687b0503c35a1 /source/blender | |
parent | d5b77fd52279f47c27ffa9bd44c4e7b91b7b7f60 (diff) |
Fix: Issues with attribute comparison in geometry nodes tests
A few typos in 17770192fb0c5fddda lead to an incorrect count of custom
data layers in the test meshes. We only want to consider layers that are
not anonymous, and there was a copy and paste mistake.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/mesh.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/mesh.cc b/source/blender/blenkernel/intern/mesh.cc index 334ec0c5423..12c63ab0523 100644 --- a/source/blender/blenkernel/intern/mesh.cc +++ b/source/blender/blenkernel/intern/mesh.cc @@ -456,14 +456,14 @@ static int customdata_compare( for (int i = 0; i < c1->totlayer; i++) { l1 = &c1->layers[i]; - if (CD_TYPE_AS_MASK(l1->type) & cd_mask_all_attr && l1->anonymous_id != nullptr) { + if ((CD_TYPE_AS_MASK(l1->type) & cd_mask_all_attr) && l1->anonymous_id == nullptr) { layer_count1++; } } for (int i = 0; i < c2->totlayer; i++) { l2 = &c2->layers[i]; - if (CD_TYPE_AS_MASK(l1->type) & cd_mask_all_attr && l2->anonymous_id != nullptr) { + if ((CD_TYPE_AS_MASK(l2->type) & cd_mask_all_attr) && l2->anonymous_id == nullptr) { layer_count2++; } } |