Print NavMap error only once for invalid NavMesh.
(cherry picked from commit 67052af918
)
This commit is contained in:
parent
f0fcdef598
commit
bcd92b8aa0
1 changed files with 1 additions and 1 deletions
|
@ -580,7 +580,7 @@ void NavMap::sync() {
|
||||||
connections[ek].push_back(new_connection);
|
connections[ek].push_back(new_connection);
|
||||||
} 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 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 problems.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue