bool ED_space_image_show_paint(SpaceImage *sima) { if (ED_space_image_show_render(sima)) return false; return (sima->mode == SI_MODE_PAINT); }
bool ED_space_image_show_uvedit(SpaceImage *sima, Object *obedit) { if (sima && (ED_space_image_show_render(sima) || ED_space_image_show_paint(sima))) return false; if (obedit && obedit->type == OB_MESH) { struct BMEditMesh *em = BKE_editmesh_from_object(obedit); bool ret; ret = EDBM_mtexpoly_check(em); return ret; } return false; }
int ED_space_image_show_uvedit(SpaceImage *sima, Object *obedit) { if (sima && (ED_space_image_show_render(sima) || ED_space_image_show_paint(sima))) return 0; if (obedit && obedit->type == OB_MESH) { struct BMEditMesh *em = BMEdit_FromObject(obedit); int ret; ret = EDBM_mtexpoly_check(em); return ret; } return 0; }