Fix for error in last commit: forgot to check if me->medge==NULL when making

LSCM seam groups.
This commit is contained in:
Brecht Van Lommel 2004-09-12 22:35:49 +00:00
parent 74c0946e4a
commit 025e6b8b4f
1 changed files with 11 additions and 0 deletions

View File

@ -231,6 +231,17 @@ static int make_seam_groups(Mesh *me, int **seamgroups)
if(!me || !me->tface) return 0;
groups= (int*)MEM_callocN(sizeof(int)*me->totface, "SeamGroups");
if(me->medge==NULL) {
tface= (TFace*)me->tface;
gface= groups;
for(a=me->totface; a>0; a--, tface++, gface++)
if(tface->flag & TF_SELECT)
*gface= 1;
*seamgroups= groups;
return 1;
}
htable= make_hash_edge_table(me, 0);
mface= (MFace*)me->mface;