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
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2003-10-22 01:59:00 +0400
committerTon Roosendaal <ton@blender.org>2003-10-22 01:59:00 +0400
commite0e45e81da98b2a7c753c07901ae052e73069c7e (patch)
tree5d6e5ecf95677ec660beb0a7b8dd955570a749b9 /source
parent594f3cddca20fecf91849a28918282018b478084 (diff)
- fixed error; the vertices didnt draw anymore in editmode with sold draw.
was caused because i only tested the new cool 'draw wire extra'. :) - by default, in solid draw mode & editmode, it does a 'draw wire extra' now, giving nice clean editmesh drawing. - there's still a few quirks, i do a test now... this commit is to have a good working blender in cvs. the whole drawing system is such chaos...
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/drawobject.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/src/drawobject.c b/source/blender/src/drawobject.c
index 5bb7e8a8dc1..a2bfc701b64 100644
--- a/source/blender/src/drawobject.c
+++ b/source/blender/src/drawobject.c
@@ -1780,12 +1780,12 @@ static void drawmeshsolid(Object *ob, float *nors)
glDisable(GL_LIGHTING);
glShadeModel(GL_FLAT);
- if(ob==G.obedit) {
- calc_meshverts();
+ //if(ob==G.obedit) {
+ // calc_meshverts();
- tekenvertices(0);
- tekenvertices(1);
- }
+ // tekenvertices(0);
+ // tekenvertices(1);
+ //}
}
else { /* [nors] should never be zero, but is weak code... the displist
system needs a make over (ton)
@@ -3369,7 +3369,7 @@ static void drawWireExtra(Object *ob, ListBase *lb)
static void draw_extra_wire(Object *ob)
{
Curve *cu;
-
+
switch(ob->type) {
case OB_MESH:
drawWireExtra(ob, NULL);
@@ -3544,8 +3544,8 @@ void draw_object(Base *base)
dtx= ob->dtx;
if(G.obedit==ob) {
- if(dtx & OB_TEXSPACE) dtx= OB_TEXSPACE;
- else dtx= 0;
+ // the only 2 extra drawtypes alowed in editmode
+ dtx= dtx & (OB_DRAWWIRE|OB_TEXSPACE);
}
if(G.f & G_DRAW_EXT) {
@@ -3593,6 +3593,7 @@ void draw_object(Base *base)
else {
drawmeshsolid(ob, 0);
}
+ dtx |= OB_DRAWWIRE; // draws edges, transp faces, subsurf handles, vertices
}
if(ob==G.obedit && (G.f & G_PROPORTIONAL)) draw_prop_circle();
}
@@ -3689,9 +3690,8 @@ void draw_object(Base *base)
BMF_DrawString(G.font, ob->id.name+2);
}
if(dtx & OB_DRAWIMAGE) drawDispListwire(&ob->disp);
+ if((dtx & OB_DRAWWIRE) && dt>=OB_SOLID) draw_extra_wire(ob);
}
- // dtx is set at zero in editmode, but we want this one!
- if(ob->dtx & OB_DRAWWIRE && dt>=OB_SOLID) draw_extra_wire(ob);
if(dt<OB_SHADED) {
if((ob->gameflag & OB_ACTOR) && (ob->gameflag & OB_DYNAMIC)) {