diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-01-24 12:30:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-01-24 12:30:41 +0300 |
commit | 54b992ae6159d0bf788adaa5d585d82d17333f1e (patch) | |
tree | 0f7f73bac5dcb1b0a7595a3dd5621c6e03beb07f /source | |
parent | 7c1e369987bcfc0c9b0687570a9afe1c772c1666 (diff) |
Fix glLineWidth state use w/ grid floor and brush
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_cursor.c | 1 | ||||
-rw-r--r-- | source/blender/editors/space_view3d/view3d_draw.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_cursor.c b/source/blender/editors/sculpt_paint/paint_cursor.c index 2f4dc549694..2ba07971424 100644 --- a/source/blender/editors/sculpt_paint/paint_cursor.c +++ b/source/blender/editors/sculpt_paint/paint_cursor.c @@ -1064,6 +1064,7 @@ static void paint_draw_cursor(bContext *C, int x, int y, void *UNUSED(unused)) } /* make lines pretty */ + glLineWidth(1.0f); glEnable(GL_BLEND); glEnable(GL_LINE_SMOOTH); diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index cb9e0d15984..c37d90b1878 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -304,6 +304,8 @@ static void drawgrid(UnitSettings *unit, ARegion *ar, View3D *v3d, const char ** dx = fabs(x - (wx) * fx / fw); if (dx == 0) dx = fabs(y - (wy) * fy / fw); + glLineWidth(1.0f); + glDepthMask(GL_FALSE); /* disable write in zbuffer */ /* check zoom out */ |