Recommitted this commit yesterday, was apparently done in the wrong

directory... so the slowdown was still evident!

Maintenance commit;

  - *Giant* speedup for LMB frame-dragging in ipo/action/nla windows. It was
    calling a routine that accessed frontbuffer drawing.... a very old patch
    for SGIs even! :)
  - Prepared code for support of unlimited Shape keys
  - Curve objects didnt draw correct for selection-outline option
This commit is contained in:
2005-09-27 21:52:04 +00:00
parent 4e64b288a4
commit 96253376e7
7 changed files with 57 additions and 76 deletions

View File

@@ -1954,36 +1954,39 @@ static void drawDispListsolid(ListBase *lb, Object *ob)
switch(dl->type) {
case DL_SEGM:
BIF_ThemeColor(TH_WIRE);
glDisable(GL_LIGHTING);
parts= dl->parts;
while(parts--) {
nr= dl->nr;
glBegin(GL_LINE_STRIP);
while(nr--) {
glVertex3fv(data);
data+=3;
if(ob->type==OB_SURF) {
BIF_ThemeColor(TH_WIRE);
glDisable(GL_LIGHTING);
parts= dl->parts;
while(parts--) {
nr= dl->nr;
glBegin(GL_LINE_STRIP);
while(nr--) {
glVertex3fv(data);
data+=3;
}
glEnd();
}
glEnd();
glEnable(GL_LIGHTING);
}
glEnable(GL_LIGHTING);
break;
case DL_POLY:
BIF_ThemeColor(TH_WIRE);
glDisable(GL_LIGHTING);
parts= dl->parts;
while(parts--) {
nr= dl->nr;
glBegin(GL_LINE_LOOP);
while(nr--) {
glVertex3fv(data);
data+=3;
if(ob->type==OB_SURF) {
BIF_ThemeColor(TH_WIRE);
glDisable(GL_LIGHTING);
parts= dl->parts;
while(parts--) {
nr= dl->nr;
glBegin(GL_LINE_LOOP);
while(nr--) {
glVertex3fv(data);
data+=3;
}
glEnd();
}
glEnd();
glEnable(GL_LIGHTING);
break;
}
glEnable(GL_LIGHTING);
break;
case DL_SURF:
set_gl_material(dl->col+1);