Recast: select traverse type during init in NavMeshTesterTool

Set it to the first usable one instead of "none" since we will be using the anim types a lot more often than "none". Also removed some extraneous separators to enhance the UX.
This commit is contained in:
Kawe Mazidjatari 2024-07-08 12:31:25 +02:00
parent aaaca914a6
commit 7875cb6310

View File

@ -207,6 +207,7 @@ void NavMeshTesterTool::init(Editor* editor)
m_neighbourhoodRadius = editor->getAgentRadius() * 20.0f;
m_randomRadius = editor->getAgentRadius() * 30.0f;
m_traverseAnimType = NavMesh_GetFirstTraverseAnimTypeForType(editor->getLoadedNavMeshType());
}
void NavMeshTesterTool::handleMenu()
@ -257,8 +258,6 @@ void NavMeshTesterTool::handleMenu()
recalc();
}
imguiSeparator();
if (imguiCheck("Raycast", m_toolMode == TOOLMODE_RAYCAST))
{
m_toolMode = TOOLMODE_RAYCAST;
@ -278,8 +277,6 @@ void NavMeshTesterTool::handleMenu()
recalc();
}
imguiSeparator();
if (imguiCheck("Find Local Neighbourhood", m_toolMode == TOOLMODE_FIND_LOCAL_NEIGHBOURHOOD))
{
m_toolMode = TOOLMODE_FIND_LOCAL_NEIGHBOURHOOD;