diff options
Diffstat (limited to 'source/blender/src/editmesh.c')
-rw-r--r-- | source/blender/src/editmesh.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/src/editmesh.c b/source/blender/src/editmesh.c index fe6708f5959..bc492dd859e 100644 --- a/source/blender/src/editmesh.c +++ b/source/blender/src/editmesh.c @@ -2164,3 +2164,16 @@ EditFace *EM_get_face_for_index(int index) { return g_em_face_array?g_em_face_array[index]:NULL; } + +/* can we edit UV's for this mesh?*/ +int EM_texFaceCheck(void) +{ + /* some of these checks could be a touch overkill */ + if ( (G.obedit) && + (G.obedit->type == OB_MESH) && + (G.editMesh) && + (G.editMesh->faces.first) && + (CustomData_has_layer(&G.editMesh->fdata, CD_MTFACE))) + return 1; + return 0; +} |