diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2004-09-14 03:37:24 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2004-09-14 03:37:24 +0400 |
commit | 807339b4a7a0be25fbdc3de32e2c264f3f0b1e5a (patch) | |
tree | 7525b758e2eb33f58bc4065e056de345b5cfeacf /source | |
parent | 538e11a45d0d456e6da502765082662e3c76f015 (diff) |
A more correct and simple fix to the me->medge==NULL problem from my last
commit.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/unwrapper.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/source/blender/src/unwrapper.c b/source/blender/src/unwrapper.c index 451a4c1beca..68ef7cca919 100644 --- a/source/blender/src/unwrapper.c +++ b/source/blender/src/unwrapper.c @@ -138,7 +138,7 @@ static HashEdge *make_hash_edge_table(Mesh *me, short fill) MEdge *medge; unsigned int a; - if(me->medge==NULL) + if(fill && (me->medge==NULL)) return NULL; htable= MEM_callocN(EDHASHSIZE*sizeof(HashEdge), "lscmedgehashtable"); @@ -232,16 +232,6 @@ static int make_seam_groups(Mesh *me, int **seamgroups) 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; |