mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: poly mesh cells are an MSET >= 8 only feature
This commit is contained in:
parent
6fd2d41856
commit
98454cceab
@ -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");
|
||||
|
@ -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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user