uvedit_draw: Ensure first if it has any UV to draw

Otherwise an assert could be launched
This commit is contained in:
Germano
2018-01-29 16:56:52 -02:00
parent d072022bbf
commit 38bc973a6c

View File

@@ -683,7 +683,7 @@ static void draw_uvs(SpaceImage *sima, Scene *scene, ViewLayer *view_layer, Obje
}
}
if (!(sima->flag & SI_NO_DRAWFACES)) {
if (tri_count && !(sima->flag & SI_NO_DRAWFACES)) {
/* draw transparent faces */
UI_GetThemeColor4ubv(TH_FACE, col1);
UI_GetThemeColor4ubv(TH_FACE_SELECT, col2);