Skip to content

Commit

Permalink
fix(mesh): reverted previous change (2.30) to better accommodate dens…
Browse files Browse the repository at this point in the history
…e meshes
  • Loading branch information
Gregungory committed Jul 14, 2020
1 parent 4b97769 commit ed43066
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/mesh.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef lint
static const char RCSid[] = "$Id: mesh.c,v 2.33 2020/04/04 04:34:08 greg Exp $";
static const char RCSid[] = "$Id: mesh.c,v 2.34 2020/07/14 23:13:50 greg Exp $";
#endif
/*
* Mesh support routines
Expand Down Expand Up @@ -509,9 +509,9 @@ addmeshtri( /* add a new mesh triangle */
}
/* double link */
pp = &mp->patch[pn[i=0]];
if (pp->nj2tris >= 256)
if (mp->patch[pn[1]].nj2tris < pp->nj2tris)
pp = &mp->patch[pn[i=1]];
if (pp->nj2tris >= 256)
if (mp->patch[pn[2]].nj2tris < pp->nj2tris)
pp = &mp->patch[pn[i=2]];
if (pp->nj2tris >= 256)
error(INTERNAL, "too many patch triangles in addmeshtri");
Expand Down

0 comments on commit ed43066

Please # to comment.