fix for Issue 40: RecastMesh.cpp : removeVertex bad indexing
This commit is contained in:
parent
f839fb080a
commit
be4a807242
@ -592,10 +592,9 @@ static bool removeVertex(rcPolyMesh& mesh, const unsigned short rem, const int m
|
|||||||
|
|
||||||
// Start with one vertex, keep appending connected
|
// Start with one vertex, keep appending connected
|
||||||
// segments to the start and end of the hole.
|
// segments to the start and end of the hole.
|
||||||
hole[nhole] = edges[0];
|
pushBack(edges[0], hole, nhole);
|
||||||
hreg[nhole] = edges[2];
|
pushBack(edges[2], hreg, nhreg);
|
||||||
harea[nhole] = edges[3];
|
pushBack(edges[3], harea, nharea);
|
||||||
nhole++;
|
|
||||||
|
|
||||||
while (nedges)
|
while (nedges)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user