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:
authorTon Roosendaal <ton@blender.org>2003-12-04 14:37:39 +0300
committerTon Roosendaal <ton@blender.org>2003-12-04 14:37:39 +0300
commit43369f076f3be5000f56079f31767ffc3e730d2b (patch)
tree07f174173f3460b96cc5c388f888b19871644c88 /source/blender
parent241906b5881ff510aaf95fdf74b4e30f37f5fea6 (diff)
- added wire color theme usage for drawing edges in editmode.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/src/drawobject.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/src/drawobject.c b/source/blender/src/drawobject.c
index 6138f64c831..9f6be47d046 100644
--- a/source/blender/src/drawobject.c
+++ b/source/blender/src/drawobject.c
@@ -259,7 +259,7 @@ void helpline(float *vec)
glDrawBuffer(GL_FRONT);
- cpack(0);
+ BIF_ThemeColor(TH_WIRE);
setlinestyle(3);
glBegin(GL_LINE_STRIP);
@@ -437,7 +437,7 @@ static void tekenshadbuflimits(Lamp *la, float mat[][4])
glPointSize(3.0);
glBegin(GL_POINTS);
- cpack(0);
+ BIF_ThemeColor(TH_WIRE);
glVertex3fv(sta);
glVertex3fv(end);
glEnd();
@@ -2410,7 +2410,7 @@ static void drawmeshwire(Object *ob)
drawDispListwire(&me->disp);
}
}
- cpack(0x0);
+ BIF_ThemeColor(TH_WIRE);
if(handles==0 && (G.f & G_DRAWEDGES)) { /* Use edge Highlighting */
char col[4];
@@ -2421,9 +2421,9 @@ static void drawmeshwire(Object *ob)
glBegin(GL_LINES);
while(eed) {
if(eed->h==0) {
- if(eed->v1->f & 1) glColor3ub(col[0], col[1], col[2]); else cpack(0x0);
+ if(eed->v1->f & 1) glColor3ub(col[0], col[1], col[2]); else BIF_ThemeColor(TH_WIRE);
glVertex3fv(eed->v1->co);
- if(eed->v2->f & 1) glColor3ub(col[0], col[1], col[2]); else cpack(0x0);
+ if(eed->v2->f & 1) glColor3ub(col[0], col[1], col[2]); else BIF_ThemeColor(TH_WIRE);
glVertex3fv(eed->v2->co);
}
eed= eed->next;
@@ -2893,7 +2893,7 @@ static void drawnurb(Object *ob, Nurb *nurb, int dt)
/* then DispList */
- cpack(0);
+ BIF_ThemeColor(TH_WIRE);
cu= ob->data;
drawDispList(ob, dt);
@@ -2904,7 +2904,7 @@ static void drawnurb(Object *ob, Nurb *nurb, int dt)
if(cu->bev.first==0) makeBevelList(ob);
- cpack(0x0);
+ BIF_ThemeColor(TH_WIRE);
bl= cu->bev.first;
nu= nurb;
while(nu && bl) {
@@ -3070,7 +3070,7 @@ static void drawmball(Object *ob, int dt)
mb= ob->data;
if(ob==G.obedit) {
- cpack(0x0);
+ BIF_ThemeColor(TH_WIRE);
if((G.f & G_PICKSEL)==0 ) drawDispList(ob, dt);
ml= editelems.first;
}