Cleanup: skip adding tessface loop & color layers
Also correct check in unused poll function
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user