From 114386fa3ad97511925a9a8f425309ef223748fd Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Thu, 13 May 2004 18:01:36 +0000 Subject: [PATCH] enable light for wireframe arrows only in fill mode --- Graphics/Entity.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Graphics/Entity.cpp b/Graphics/Entity.cpp index f87398876e..2b775a96ca 100644 --- a/Graphics/Entity.cpp +++ b/Graphics/Entity.cpp @@ -1,4 +1,4 @@ -// $Id: Entity.cpp,v 1.38 2004-05-08 00:19:47 geuzaine Exp $ +// $Id: Entity.cpp,v 1.39 2004-05-13 18:01:36 geuzaine Exp $ // // Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle // @@ -202,7 +202,7 @@ void Draw_SimpleVector(int arrow, int fill, { double n[3], t[3], u[3]; - if(light) glEnable(GL_LIGHTING); + if(light && fill) glEnable(GL_LIGHTING); n[0] = dx / d; n[1] = dy / d; -- GitLab