Cleanup: conversion from enum/int warning

This commit is contained in:
Campbell Barton 2022-06-01 14:30:57 +10:00
parent ee57afe7e1
commit 0e8d6c2828
Notes: blender-bot 2023-02-14 02:41:05 +01:00
Referenced by issue #98528, Build error macOS intel: (error: cannot increment expression of enum type 'AttributeDomain')
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}