Example #1
0
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;
}
Example #2
0
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;
}