Recast: allow for fully disabling poly cells

Setting it to 0 fully disables it, clamped from 0 to 128 now.
This commit is contained in:
Kawe Mazidjatari 2024-11-08 21:44:11 +01:00
parent 23c0e87735
commit bfda37300c

View File

@ -453,7 +453,7 @@ void Editor::handleCommonSettings()
ImGui::SliderInt("Verts Per Poly", &m_vertsPerPoly, 3, 6);
#if DT_NAVMESH_SET_VERSION >= 8
ImGui::SliderInt("Poly Cell Resolution", &m_polyCellRes, 1, 128);
ImGui::SliderInt("Poly Cell Resolution", &m_polyCellRes, 0, 128);
#endif
ImGui::Separator();