Skip to content

Commit

Permalink
Added error to notify that the Navigation triangle merging failed due…
Browse files Browse the repository at this point in the history
… to incorrect parameter.
  • Loading branch information
AndreaCatania authored Mar 6, 2020
1 parent e2b66ca commit 38cfb79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/gdnavigation/nav_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
}
}
Expand Down

0 comments on commit 38cfb79

Please sign in to comment.