diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-02-27 22:29:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-02-27 22:29:14 +0300 |
commit | abb3763483eaeb7b0a8e16f407f87f80d397c745 (patch) | |
tree | abe6230a86357177645697a11a36c28a54590d73 /source/blender/editors/space_view3d | |
parent | 4cbc3d2fddb805ecc524117eaaa67df8417031a6 (diff) |
Fix T47582: Curve handle thickness regression
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index 9ac000f060f..64c01b86442 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -6021,8 +6021,6 @@ static void drawhandlesN(Nurb *nu, const char sel, const bool hide_handles) { if (nu->hide || hide_handles) return; - glBegin(GL_LINES); - if (nu->type == CU_BEZIER) { 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]); } + glLineWidth(1.0f); + + glBegin(GL_LINES); + BezTriple *bezt = nu->bezt; int a = nu->pntsu; while (a--) { @@ -6069,10 +6071,11 @@ static void drawhandlesN(Nurb *nu, const char sel, const bool hide_handles) bezt++; } + glEnd(); + #undef TH_HANDLE_COL_TOT } - glEnd(); } 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); } + glLineWidth(1); + UI_ThemeColor(TH_NURB_ULINE); bp = nu->bp; for (b = 0; b < nu->pntsv; b++) { |