Fix for error in last commit: forgot to check if me->medge==NULL when making
LSCM seam groups.
This commit is contained in:
parent
74c0946e4a
commit
025e6b8b4f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue