summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-03-06 15:35:54 +0100
committerGitHub <noreply@github.com>2020-03-06 15:35:54 +0100
commit54fa07e7f01b21bc69309172b439bc05db571977 (patch)
treefdcc75a2ac8b0e59358564ce5e7ed098b0b33422
parent1e255532e90fa35148167e4c153ad39f77010a04 (diff)
parent38cfb79e6a6a58cd52123c2f7d224123b438606a (diff)
Merge pull request #36854 from AndreaCatania/AndreaCatania-patch-3
Added navigation mesh merging error.
-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.");
}
}
}