Cleanup: Strict compiler warning in remesher

This commit is contained in:
Sergey Sharybin 2022-04-13 11:51:38 +02:00
parent 25c357124d
commit 402845744f
1 changed files with 2 additions and 2 deletions

View File

@ -375,8 +375,8 @@ void BKE_remesh_reproject_vertex_paint(Mesh *target, const Mesh *source)
MeshElemMap *target_lmap = nullptr;
int *target_lmap_mem = nullptr;
while (layer = BKE_id_attribute_from_index(
const_cast<ID *>(&source->id), i++, ATTR_DOMAIN_MASK_COLOR, CD_MASK_COLOR_ALL)) {
while ((layer = BKE_id_attribute_from_index(
const_cast<ID *>(&source->id), i++, ATTR_DOMAIN_MASK_COLOR, CD_MASK_COLOR_ALL))) {
AttributeDomain domain = BKE_id_attribute_domain(&source->id, layer);
CustomData *target_cdata = domain == ATTR_DOMAIN_POINT ? &target->vdata : &target->ldata;