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 <campbell@blender.org>2022-06-01 07:30:57 +0300
committerCampbell Barton <campbell@blender.org>2022-06-01 07:30:57 +0300
commit0e8d6c282810931a95169e3692472f4b8fc61f9e (patch)
treed9790de18755bba6ab7286012459d664a8d314a0
parentee57afe7e1536dc45b50093d2284180e80038db3 (diff)
Cleanup: conversion from enum/int warning
-rw-r--r--source/blender/blenkernel/intern/attribute.cc3
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;
}