Added error to notify that the Navigation triangle merging failed due to incorrect parameter.
This commit is contained in:
parent
e2b66cacf7
commit
38cfb79e6a
@ -657,6 +657,7 @@ void NavMap::sync() {
|
|||||||
connection->get().B->edges[connection->get().B_edge].other_edge = connection->get().A_edge;
|
connection->get().B->edges[connection->get().B_edge].other_edge = connection->get().A_edge;
|
||||||
} else {
|
} else {
|
||||||
// The edge is already connected with another edge, skip.
|
// 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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user