Sculpt-dev: fix compile error

Why can't we have -werror settings
the same on all compilers and platforms?
This commit is contained in:
Joseph Eagar 2021-11-09 10:16:45 -08:00
parent 66523d2447
commit 35133f9a06
1 changed files with 3 additions and 3 deletions

View File

@ -201,12 +201,12 @@ static void rna_Attribute_active_render_set(PointerRNA *ptr, bool value)
}
if (!BKE_id_attributes_supported(id)) {
return false;
return;
}
if (GS(id->name) != ID_ME) {
/* only meshes for now */
return false;
return;
}
Mesh *me = (Mesh *)id;
@ -229,7 +229,7 @@ static void rna_Attribute_active_render_set(PointerRNA *ptr, bool value)
}
if (!cdata) {
return false;
return;
}
if (ELEM(layer->type, CD_PROP_COLOR, CD_MLOOPCOL)) {