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
@ -171,6 +171,8 @@ static void floodNavmesh(dtNavMesh* nav, NavmeshFlags* flags, dtPolyRef start, u
|
||||
// If already visited, skip.
|
||||
if (flags->getFlags(start))
|
||||
return;
|
||||
|
||||
flags->setFlags(start, flag);
|
||||
|
||||
PolyRefArray openList;
|
||||
openList.push(start);
|
||||
|
Loading…
x
Reference in New Issue
Block a user