Note: Unlike 2.79 we are not comparing face->mat_nr, but the material itself. On top og that, if the material slot is empty we are just ignoring this face.
Note: Unlike 2.79 we are not comparing face->mat_nr, but the material itself. On top og that, if the material slot is empty we are just ignoring this face.