Recast: poly mesh cells are an MSET >= 8 only feature

This commit is contained in:
Kawe Mazidjatari 2024-09-03 10:57:54 +02:00
parent 6fd2d41856
commit 98454cceab
2 changed files with 5 additions and 0 deletions

View File

@ -402,7 +402,10 @@ void Editor::handleCommonSettings()
ImGui::SliderInt("Max Edge Length", &m_edgeMaxLen, 0, 50); // todo(amos): increase due to larger scale maps?
ImGui::SliderFloat("Max Edge Error", &m_edgeMaxError, 0.1f, 3.0f);
ImGui::SliderInt("Verts Per Poly", &m_vertsPerPoly, 3, 6);
#if DT_NAVMESH_SET_VERSION >= 8
ImGui::SliderInt("Poly Cell Resolution", &m_polyCellRes, 1, 16);
#endif
ImGui::Separator();
ImGui::Text("Detail Mesh");

View File

@ -537,6 +537,7 @@ bool dtCreateTraverseTableData(const dtTraverseTableCreateParams* params)
return true;
}
#if DT_NAVMESH_SET_VERSION >= 8
struct CellItem
{
float pos[3];
@ -710,6 +711,7 @@ static bool createPolyMeshCells(const dtNavMeshCreateParams* params, rdTempVecto
return true;
}
#endif // DT_NAVMESH_SET_VERSION >= 8
// TODO: Better error handling.