diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2013-12-08 03:36:31 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2013-12-08 03:37:19 +0400 |
commit | 9f1ace246951e3d54f6e75d9b8d548501bc4ee0b (patch) | |
tree | ec8fc8bdf8dbd719f8e53301d46b06d2cae9ae24 /source/blender/editors/uvedit | |
parent | 51263c6637906f1f381f3b535120cba163b5ab40 (diff) |
Add themable colors for edges in UV editor. Reuse WIRE_EDIT for outlines
and EDGE_SELECT theme colors for selected edges.
Diffstat (limited to 'source/blender/editors/uvedit')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_draw.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/uvedit/uvedit_draw.c b/source/blender/editors/uvedit/uvedit_draw.c index d8529823a9c..6d766572ec6 100644 --- a/source/blender/editors/uvedit/uvedit_draw.c +++ b/source/blender/editors/uvedit/uvedit_draw.c @@ -694,12 +694,12 @@ static void draw_uvs(SpaceImage *sima, Scene *scene, Object *obedit) } glLineWidth(1); - col2[0] = col2[1] = col2[2] = 192; col2[3] = 255; - glColor4ubv((unsigned char *)col2); - + UI_GetThemeColor4ubv(TH_WIRE_EDIT, col2); + glColor4ubv((unsigned char *)col2); + if (me->drawflag & ME_DRAWEDGES) { int sel, lastsel = -1; - UI_GetThemeColor4ubv(TH_VERTEX_SELECT, col1); + UI_GetThemeColor4ubv(TH_EDGE_SELECT, col1); if (interpedges) { glShadeModel(GL_SMOOTH); |