diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-04-06 07:27:37 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-04-06 07:27:37 +0300 |
commit | 16597b691ac911ec54da3c0aeff36278a8107b22 (patch) | |
tree | df04b833dd4433ce916a8cf260f4db2dd790a4e4 /source/blender/editors/space_view3d | |
parent | 28dad2ec129bd69a17f8f74c2f822bdd2cd90917 (diff) |
Fix camera view-border line width
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_draw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index 8c2d7877c8c..7f1a7a059fc 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -1110,6 +1110,8 @@ static void drawviewborder(Scene *scene, ARegion *ar, View3D *v3d) x2 = viewborder.xmax; y2 = viewborder.ymax; + glLineWidth(1.0f); + /* apply offsets so the real 3D camera shows through */ /* note: quite un-scientific but without this bit extra @@ -1135,7 +1137,6 @@ static void drawviewborder(Scene *scene, ARegion *ar, View3D *v3d) glEnable(GL_BLEND); glColor4f(0, 0, 0, ca->passepartalpha); } - glLineWidth(1.0f); if (x1i > 0.0f) glRectf(0.0, winy, x1i, 0.0); |