summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorK. S. Ernest (iFire) Lee <ernest.lee@chibifire.com>2021-11-24 11:21:33 -0800
committerRĂ©mi Verschelde <rverschelde@gmail.com>2022-06-16 13:56:16 +0200
commit67052af918efe1b08568176f7d9f6aeae681299d (patch)
tree37c9ca2e0d3bc1bd3adee60e5ed14881cf67bbe7
parent1ad6fade00ab3f43efc87038abeab922eb8bdd4c (diff)
Print NavMap error only once for invalid NavMesh.
-rw-r--r--modules/navigation/nav_map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/navigation/nav_map.cpp b/modules/navigation/nav_map.cpp
index 49c12813b3..17d6e0a0a1 100644
--- a/modules/navigation/nav_map.cpp
+++ b/modules/navigation/nav_map.cpp
@@ -573,7 +573,7 @@ void NavMap::sync() {
connections[ek].push_back(new_connection);
} else {
// The edge is already connected with another edge, skip.
- ERR_PRINT("Attempted to merge a navigation mesh triangle edge with another already-merged edge. This happens when the current `cell_size` is different from the one used to generate the navigation mesh. This will cause navigation problem.");
+ ERR_PRINT_ONCE("Attempted to merge a navigation mesh triangle edge with another already-merged edge. This happens when the current `cell_size` is different from the one used to generate the navigation mesh. This will cause navigation problems.");
}
}
}