Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2016-04-06 07:27:37 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-04-06 07:27:37 +0300
commit16597b691ac911ec54da3c0aeff36278a8107b22 (patch)
treedf04b833dd4433ce916a8cf260f4db2dd790a4e4 /source/blender/editors
parent28dad2ec129bd69a17f8f74c2f822bdd2cd90917 (diff)
Fix camera view-border line width
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_view3d/view3d_draw.c3
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);