From ade4d3cf281713aa6313c7f841aec4c126159c74 Mon Sep 17 00:00:00 2001 From: smix8 <52464204+smix8@users.noreply.github.com> Date: Sat, 21 Oct 2023 03:11:37 +0200 Subject: [PATCH] Fix NavigationLink enabled toggle Fixes NavigationLink enabled toggle. --- modules/navigation/nav_map.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/navigation/nav_map.cpp b/modules/navigation/nav_map.cpp index 737ccaf3cd3..5ef0298eb42 100644 --- a/modules/navigation/nav_map.cpp +++ b/modules/navigation/nav_map.cpp @@ -953,6 +953,9 @@ void NavMap::sync() { // Search for polygons within range of a nav link. for (const NavLink *link : links) { + if (!link->get_enabled()) { + continue; + } const Vector3 start = link->get_start_position(); const Vector3 end = link->get_end_position();