Recast: invert button mapping for start/end pos of tester tool

Make the left mouse button set the start pos, and right mouse button (or shift + lmb) set the end pos.
This commit is contained in:
Kawe Mazidjatari 2024-07-02 17:39:43 +02:00
parent 59f6ea52dc
commit aca1e7af96

View File

@ -406,7 +406,7 @@ void NavMeshTesterTool::handleMenu()
void NavMeshTesterTool::handleClick(const float* /*s*/, const float* p, bool shift)
{
if (shift)
if (!shift)
{
m_sposSet = true;
dtVcopy(m_spos, p);