Making Curve objects display smooth/solid was nice, but then the Surface

Objects should do that too, right? Bad testing... tsk! :)
This commit is contained in:
2004-11-01 12:11:03 +00:00
parent ab36f4a2d2
commit 84b3980b92
2 changed files with 10 additions and 10 deletions

View File

@@ -1834,6 +1834,7 @@ void makeDispList(Object *ob)
dl->parts= 1;
dl->nr= len;
dl->col= nu->mat_nr;
dl->rt= nu->flag;
data= dl->verts;
if(nu->flagu & 1) dl->type= DL_POLY;
@@ -1872,6 +1873,7 @@ void makeDispList(Object *ob)
if(nu->flagu & 1) dl->flag|= DL_CYCL_V;
}
dl->col= nu->mat_nr;
dl->rt= nu->flag;
data= dl->verts;
dl->type= DL_SURF;

View File

@@ -572,23 +572,21 @@ void do_common_editbuts(unsigned short event) // old name, is a mix of object an
}
efa= efa->next;
}
makeDispList(G.obedit);
allqueue(REDRAWVIEW3D, 0);
if(event == B_SETSMOOTH) BIF_undo_push("Set Smooth");
else BIF_undo_push("Set Solid");
}
else {
nu= editNurb.first;
while(nu) {
if(isNurbsel(nu)) {
if(event==B_SETSMOOTH) nu->flag |= ME_SMOOTH;
else nu->flag &= ~ME_SMOOTH;
if(event==B_SETSMOOTH) nu->flag |= CU_SMOOTH;
else nu->flag &= ~CU_SMOOTH;
}
nu= nu->next;
}
}
if(event == B_SETSMOOTH) BIF_undo_push("Set Smooth");
else BIF_undo_push("Set Solid");
makeDispList(G.obedit);
allqueue(REDRAWVIEW3D, 0);
}
else {
base= FIRSTBASE;