From aca1e7af9604f78fbffaef0e1700ae20a617d5f5 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Tue, 2 Jul 2024 17:39:43 +0200 Subject: [PATCH] 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. --- src/naveditor/NavMeshTesterTool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/naveditor/NavMeshTesterTool.cpp b/src/naveditor/NavMeshTesterTool.cpp index 28d8143e..f2750a3a 100644 --- a/src/naveditor/NavMeshTesterTool.cpp +++ b/src/naveditor/NavMeshTesterTool.cpp @@ -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);