Fix camera view-border line width
authorCampbell Barton <ideasman42@gmail.com>
Wed, 6 Apr 2016 04:27:37 +0000 (14:27 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 6 Apr 2016 04:27:37 +0000 (14:27 +1000)
source/blender/editors/space_view3d/view3d_draw.c

index 8c2d7877c8c8f2ecced216c6c0510de8a23551c2..7f1a7a059fc1250a21b33bae506ddffaf9641605 100644 (file)
@@ -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);