summaryrefslogtreecommitdiffstats
path: root/modules/navigation
diff options
context:
space:
mode:
authorsmix8 <52464204+smix8@users.noreply.github.com>2023-10-21 03:11:37 +0200
committersmix8 <52464204+smix8@users.noreply.github.com>2023-10-21 03:11:37 +0200
commitade4d3cf281713aa6313c7f841aec4c126159c74 (patch)
treec3923e34e9ed562e6920721864005f64c5bc2550 /modules/navigation
parent6543495b49613d20f7e32f2b9d38e4a2f1d06db1 (diff)
downloadredot-engine-ade4d3cf281713aa6313c7f841aec4c126159c74.tar.gz
Fix NavigationLink enabled toggle
Fixes NavigationLink enabled toggle.
Diffstat (limited to 'modules/navigation')
-rw-r--r--modules/navigation/nav_map.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/navigation/nav_map.cpp b/modules/navigation/nav_map.cpp
index 737ccaf3cd..5ef0298eb4 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();