From df94ba0314076778fd3bd3b9e9069ba68115848e Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Wed, 10 Jul 2024 11:09:30 +0200 Subject: [PATCH] Recast: fix user interface bug "Pathfind Sliced" was checking on the wrong member variable, and the check for enabling "Set Random End" and "Make Random Points Around" was inverted. --- src/naveditor/NavMeshTesterTool.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/naveditor/NavMeshTesterTool.cpp b/src/naveditor/NavMeshTesterTool.cpp index b868e3e4..5322b170 100644 --- a/src/naveditor/NavMeshTesterTool.cpp +++ b/src/naveditor/NavMeshTesterTool.cpp @@ -260,7 +260,7 @@ void NavMeshTesterTool::handleMenu() ImGui::Unindent(); } - isEnabled = m_straightPathOptions == TOOLMODE_PATHFIND_SLICED; + isEnabled = m_toolMode == TOOLMODE_PATHFIND_SLICED; if (ImGui::Checkbox("Pathfind Sliced", &isEnabled)) { @@ -324,7 +324,7 @@ void NavMeshTesterTool::handleMenu() } } - ImGui::BeginDisabled(m_sposSet); + ImGui::BeginDisabled(!m_sposSet); if (ImGui::Button("Set Random End")) { @@ -360,7 +360,7 @@ void NavMeshTesterTool::handleMenu() } } - ImGui::BeginDisabled(m_sposSet); + ImGui::BeginDisabled(!m_sposSet); if (ImGui::Button("Make Random Points Around")) {