From e5b2fcfa4014818b4e00b86fb65d404f0d9987da Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 8 Jan 2010 14:45:26 +0000 Subject: [PATCH] Fix #20592: camera name drawing was unreadable, accidentally drawn using stippled line. --- source/blender/editors/space_view3d/view3d_draw.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index 9d5d15e6091..8af16641c00 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -1044,14 +1044,6 @@ static void drawviewborder(Scene *scene, ARegion *ar, View3D *v3d) UI_ThemeColor(TH_WIRE); glRectf(x1, y1, x2, y2); - /* camera name - draw in highlighted text color */ - if (ca && (ca->flag & CAM_SHOWNAME)) { - UI_ThemeColor(TH_TEXT_HI); - BLF_draw_default(x1, y1-15, 0.0f, v3d->camera->id.name+2); - UI_ThemeColor(TH_WIRE); - } - - /* border */ if(scene->r.mode & R_BORDER) { @@ -1086,6 +1078,12 @@ static void drawviewborder(Scene *scene, ARegion *ar, View3D *v3d) setlinestyle(0); glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); + /* camera name - draw in highlighted text color */ + if (ca && (ca->flag & CAM_SHOWNAME)) { + UI_ThemeColor(TH_TEXT_HI); + BLF_draw_default(x1, y1-15, 0.0f, v3d->camera->id.name+2); + UI_ThemeColor(TH_WIRE); + } } /* *********************** backdraw for selection *************** */