diff options
author | Campbell Barton <campbell@blender.org> | 2022-06-01 07:30:57 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-06-01 07:30:57 +0300 |
commit | 0e8d6c282810931a95169e3692472f4b8fc61f9e (patch) | |
tree | d9790de18755bba6ab7286012459d664a8d314a0 /source/blender/blenkernel/intern | |
parent | ee57afe7e1536dc45b50093d2284180e80038db3 (diff) |
Cleanup: conversion from enum/int warning
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/attribute.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/attribute.cc b/source/blender/blenkernel/intern/attribute.cc index 7ca38573d25..584035ddb85 100644 --- a/source/blender/blenkernel/intern/attribute.cc +++ b/source/blender/blenkernel/intern/attribute.cc @@ -292,7 +292,8 @@ CustomDataLayer *BKE_id_attribute_search(const ID *id, DomainInfo info[ATTR_DOMAIN_NUM]; get_domains(id, info); - for (AttributeDomain domain = ATTR_DOMAIN_POINT; domain < ATTR_DOMAIN_NUM; domain++) { + for (AttributeDomain domain = ATTR_DOMAIN_POINT; domain < ATTR_DOMAIN_NUM; + domain = static_cast<AttributeDomain>((static_cast<int>(domain)) + 1)) { if (!(domain_mask & ATTR_DOMAIN_AS_MASK(domain))) { continue; } |