summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Catania <info@andreacatania.com>2020-03-06 15:08:39 +0100
committerGitHub <noreply@github.com>2020-03-06 15:08:39 +0100
commit38cfb79e6a6a58cd52123c2f7d224123b438606a (patch)
treec3c1c8888d7fd6dd6f3e936ab33b82214b6477d6
parente2b66cacf78ae39b94df748e9740b98a1f011e77 (diff)
Added error to notify that the Navigation triangle merging failed due to incorrect parameter.
-rw-r--r--modules/gdnavigation/nav_map.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdnavigation/nav_map.cpp b/modules/gdnavigation/nav_map.cpp
index c3880f89b6..00a1901c48 100644
--- a/modules/gdnavigation/nav_map.cpp
+++ b/modules/gdnavigation/nav_map.cpp
@@ -657,6 +657,7 @@ void NavMap::sync() {
connection->get().B->edges[connection->get().B_edge].other_edge = connection->get().A_edge;
} 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 Navigation's `cell_size` is different from the one used to generate the navigation mesh. This will cause navigation problem.");
}
}
}