Fix pair building

This commit is contained in:
hasufell 2014-05-12 19:46:26 +02:00
parent 29b8b410d6
commit f2f4833392
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
1 changed files with 2 additions and 1 deletions

View File

@ -251,7 +251,8 @@ HE_obj *parse_obj(char const * const obj_string)
HE_vert *next_vert = edges[i].next->vert;
for (uint32_t j = 0; j < ec; j++)
if (next_vert == edges[j].vert)
if (next_vert == edges[j].vert
&& edges[j].next->vert == edges[i].vert)
edges[i].pair = &(edges[j]);
}