From 8b63c97000194a0dcf4232077dc86ee19df85454 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 29 Jul 2022 10:14:05 +0200 Subject: [PATCH] Ported: Print NavMap error only once for invalid NavMesh.- fire https://github.com/godotengine/godot/commit/bcd92b8aa0d944de7049d5fcc45934a453df1ddc --- 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 2cf341340..6b48c1000 100644 --- a/modules/navigation/nav_map.cpp +++ b/modules/navigation/nav_map.cpp @@ -584,7 +584,7 @@ void NavMap::sync() { connections[ek].push_back(new_connection); // 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 problem."); } } }