void free_facelist(ListBase *lb) { EditFace *efa, *next; efa= (EditFace*)lb->first; while(efa) { next= efa->next; free_editface(efa); efa= next; } lb->first= lb->last= NULL; }
void free_facelist(EditMesh *em, ListBase *lb) { EditFace *efa, *next; efa= lb->first; while(efa) { next= efa->next; free_editface(em, efa); efa= next; } lb->first= lb->last= NULL; em->totface= em->totfacesel= 0; }