Fix T47582: Curve handle thickness regression

This commit is contained in:
Campbell Barton 2016-02-28 06:29:14 +11:00
parent 4cbc3d2fdd
commit abb3763483

@ -6021,8 +6021,6 @@ static void drawhandlesN(Nurb *nu, const char sel, const bool hide_handles)
{ {
if (nu->hide || hide_handles) return; if (nu->hide || hide_handles) return;
glBegin(GL_LINES);
if (nu->type == CU_BEZIER) { if (nu->type == CU_BEZIER) {
const float *fp; const float *fp;
@ -6036,6 +6034,10 @@ static void drawhandlesN(Nurb *nu, const char sel, const bool hide_handles)
UI_GetThemeColor3ubv(basecol + a, handle_cols[a]); UI_GetThemeColor3ubv(basecol + a, handle_cols[a]);
} }
glLineWidth(1.0f);
glBegin(GL_LINES);
BezTriple *bezt = nu->bezt; BezTriple *bezt = nu->bezt;
int a = nu->pntsu; int a = nu->pntsu;
while (a--) { while (a--) {
@ -6069,10 +6071,11 @@ static void drawhandlesN(Nurb *nu, const char sel, const bool hide_handles)
bezt++; bezt++;
} }
glEnd();
#undef TH_HANDLE_COL_TOT #undef TH_HANDLE_COL_TOT
} }
glEnd();
} }
static void drawhandlesN_active(Nurb *nu) static void drawhandlesN_active(Nurb *nu)
@ -6245,6 +6248,8 @@ static void draw_editnurb_splines(Object *ob, Nurb *nurb, const bool sel)
editnurb_draw_active_poly(nu); editnurb_draw_active_poly(nu);
} }
glLineWidth(1);
UI_ThemeColor(TH_NURB_ULINE); UI_ThemeColor(TH_NURB_ULINE);
bp = nu->bp; bp = nu->bp;
for (b = 0; b < nu->pntsv; b++) { for (b = 0; b < nu->pntsv; b++) {