mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-09-23 10:44:45 +00:00
Changed dtNavmeshQuery.getPolyWallSegments() to require max number of segments to store.
This commit is contained in:
@@ -1118,8 +1118,9 @@ void NavMeshTesterTool::handleRender()
|
||||
dd.depthMask(true);
|
||||
}
|
||||
|
||||
float segs[DT_VERTS_PER_POLYGON*3*2];
|
||||
const int nsegs = m_navQuery->getPolyWallSegments(m_polys[i], &m_filter, segs);
|
||||
static const int MAX_SEGS = DT_VERTS_PER_POLYGON*2;
|
||||
float segs[MAX_SEGS*6];
|
||||
const int nsegs = m_navQuery->getPolyWallSegments(m_polys[i], &m_filter, segs, MAX_SEGS);
|
||||
dd.begin(DU_DRAW_LINES, 2.0f);
|
||||
for (int j = 0; j < nsegs; ++j)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user