Cleanup: skip adding tessface loop & color layers

Also correct check in unused poll function
This commit is contained in:
2019-08-25 15:12:31 +10:00
parent 7585d47b36
commit 8df6673165
2 changed files with 1 additions and 8 deletions

View File

@@ -138,7 +138,7 @@ static int UNUSED_FUNCTION(ED_operator_uvmap_mesh)(bContext *C)
if (ob && ob->type == OB_MESH) {
Mesh *me = ob->data;
if (CustomData_get_layer(&me->fdata, CD_MTFACE) != NULL) {
if (CustomData_get_layer(&me->ldata, CD_MLOOPUV) != NULL) {
return 1;
}
}