mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-10-03 07:25:36 +00:00
Sample_TileMesh: Removed "keep intermediate results" option
now always on
This commit is contained in:
@@ -190,7 +190,6 @@ void Sample_TileMesh::handleSettings()
|
||||
{
|
||||
Sample::handleCommonSettings();
|
||||
|
||||
if (imguiCheck("Keep Itermediate Results", m_keepIntermediateResults)) { m_keepIntermediateResults = !m_keepIntermediateResults; }
|
||||
if (imguiCheck("Build All Tiles", m_buildAll)) { m_buildAll = !m_buildAll; }
|
||||
|
||||
imguiLabel("Tiling");
|
||||
@@ -877,11 +876,6 @@ unsigned char* Sample_TileMesh::buildTileMesh(const int tileX, const int tileY,
|
||||
}
|
||||
}
|
||||
|
||||
if (!m_keepIntermediateResults)
|
||||
{
|
||||
delete [] m_triareas; m_triareas = 0;
|
||||
}
|
||||
|
||||
// Once all geometry is rasterized, we do initial pass of filtering to
|
||||
// remove unwanted overhangs caused by the conservative rasterization
|
||||
// as well as filter spans where the character cannot possibly stand.
|
||||
@@ -913,12 +907,6 @@ unsigned char* Sample_TileMesh::buildTileMesh(const int tileX, const int tileY,
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!m_keepIntermediateResults)
|
||||
{
|
||||
rcFreeHeightField(m_heightfield);
|
||||
m_heightfield = 0;
|
||||
}
|
||||
|
||||
// Erode the walkable area by agent radius.
|
||||
if (!rcErodeWalkableArea(m_buildContext, m_config.walkableRadius, *m_compactHeightfield))
|
||||
{
|
||||
@@ -1040,12 +1028,6 @@ unsigned char* Sample_TileMesh::buildTileMesh(const int tileX, const int tileY,
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!m_keepIntermediateResults)
|
||||
{
|
||||
rcFreeCompactHeightfield(m_compactHeightfield); m_compactHeightfield = 0;
|
||||
rcFreeContourSet(m_contourSet); m_contourSet = 0;
|
||||
}
|
||||
|
||||
unsigned char* navData = 0;
|
||||
int navDataSize = 0;
|
||||
if (m_config.maxVertsPerPoly <= DT_VERTS_PER_POLYGON)
|
||||
|
||||
Reference in New Issue
Block a user