Mark start poly in NavMeshPruneTool
The start poly would not be pruned if it was the only poly on the island. Fix #216
This commit is contained in:
parent
9763478a9a
commit
5d6312ab1e
@ -172,6 +172,8 @@ static void floodNavmesh(dtNavMesh* nav, NavmeshFlags* flags, dtPolyRef start, u
|
|||||||
if (flags->getFlags(start))
|
if (flags->getFlags(start))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
flags->setFlags(start, flag);
|
||||||
|
|
||||||
PolyRefArray openList;
|
PolyRefArray openList;
|
||||||
openList.push(start);
|
openList.push(start);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user