Cleanup: remove references to non-existent 'mtexpoly'

This commit is contained in:
Campbell Barton 2021-11-08 14:14:16 +11:00
parent b24a03e635
commit 0f80602632
3 changed files with 6 additions and 9 deletions

View File

@ -832,12 +832,12 @@ bool BKE_mesh_clear_facemap_customdata(struct Mesh *me)
}
/**
* This ensures grouped customdata (e.g. mtexpoly and mloopuv and mtface, or
* mloopcol and mcol) have the same relative active/render/clone/mask indices.
* This ensures grouped custom-data (e.g. #CD_MLOOPUV and #CD_MTFACE, or
* #CD_MLOOPCOL and #CD_MCOL) have the same relative active/render/clone/mask indices.
*
* NOTE(campbell): that for undo mesh data we want to skip 'ensure_tess_cd' call since
* we don't want to store memory for tessface when its only used for older
* Versions of the mesh.
* NOTE(@campbellbarton): that for undo mesh data we want to skip 'ensure_tess_cd' call since
* we don't want to store memory for #MFace data when its only used for older
* versions of the mesh.
*/
static void mesh_update_linked_customdata(Mesh *me, const bool do_ensure_tess_cd)
{

View File

@ -2020,7 +2020,7 @@ static void set_ccgdm_all_geometry(CCGDerivedMesh *ccgdm,
&dm->loopData, &ccgdm->dm.loopData, loopidx, w2, NULL, numVerts, loopindex2);
loopindex2++;
/* Copy over poly data, e.g. mtexpoly. */
/* Copy over poly data, e.g. #CD_FACEMAP. */
CustomData_copy_data(&dm->polyData, &ccgdm->dm.polyData, origIndex, faceNum, 1);
/* Set original index data. */

View File

@ -210,9 +210,6 @@ static void vertex_color_smooth_looptag(Mesh *me, const bool *mlooptag)
int(*scol)[4];
bool has_shared = false;
/* if no mloopcol: do not do */
/* if mtexpoly: only the involved faces, otherwise all */
if (me->mloopcol == NULL || me->totvert == 0 || me->totpoly == 0) {
return;
}