mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
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:
parent
aaaca914a6
commit
7875cb6310
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user