From bcd92b8aa0d944de7049d5fcc45934a453df1ddc Mon Sep 17 00:00:00 2001 From: "K. S. Ernest (iFire) Lee" Date: Wed, 24 Nov 2021 11:21:33 -0800 Subject: [PATCH] Print NavMap error only once for invalid NavMesh. (cherry picked from commit 67052af918efe1b08568176f7d9f6aeae681299d) --- modules/navigation/nav_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/navigation/nav_map.cpp b/modules/navigation/nav_map.cpp index 102577553f8..d961795b1af 100644 --- a/modules/navigation/nav_map.cpp +++ b/modules/navigation/nav_map.cpp @@ -580,7 +580,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."); } } }