diff options
author | Hans Goudey <h.goudey@me.com> | 2022-05-30 18:30:37 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-05-30 18:30:37 +0300 |
commit | a5d9b3442d4ea5daaa56d8166bb52cfbca589643 (patch) | |
tree | 017ea7a7ab76950b965619284e32ecfb9d8935f6 /source/blender/blenkernel/BKE_attribute.h | |
parent | 4267c6280a41e3f5d00ab0ce55b5a1df622903b5 (diff) |
Cleanup: Move attribute domain count out of enum
The number of attribute domains is not an attribute domain.
This way it doesn't have to be handled in switch statements.
Differential Revision: https://developer.blender.org/D15065
Diffstat (limited to 'source/blender/blenkernel/BKE_attribute.h')
-rw-r--r-- | source/blender/blenkernel/BKE_attribute.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_attribute.h b/source/blender/blenkernel/BKE_attribute.h index f3a29736bc8..cc50076e964 100644 --- a/source/blender/blenkernel/BKE_attribute.h +++ b/source/blender/blenkernel/BKE_attribute.h @@ -30,9 +30,8 @@ typedef enum AttributeDomain { ATTR_DOMAIN_CORNER = 3, /* Mesh Corner */ ATTR_DOMAIN_CURVE = 4, /* A single curve in a larger curve data-block */ ATTR_DOMAIN_INSTANCE = 5, /* Instance */ - - ATTR_DOMAIN_NUM } AttributeDomain; +#define ATTR_DOMAIN_NUM 6 typedef enum AttributeDomainMask { ATTR_DOMAIN_MASK_POINT = (1 << 0), |