Cleanup: remove references to non-existent 'mtexpoly'
This commit is contained in:
parent
b24a03e635
commit
0f80602632
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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. */
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue