Merge pull request #68486 from smix8/navpoly_outline_convex_error_4.x

Add detail to NavigationPolygon outline error msg
This commit is contained in:
Rémi Verschelde 2022-11-28 13:37:00 +01:00
commit 519b9b5c21
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -296,7 +296,9 @@ void NavigationPolygon::make_polygons_from_outlines() {
TPPLPartition tpart;
if (tpart.ConvexPartition_HM(&in_poly, &out_poly) == 0) { //failed!
ERR_PRINT("NavigationPolygon: Convex partition failed!");
ERR_PRINT("NavigationPolygon: Convex partition failed! Failed to convert outlines to a valid NavigationMesh."
"\nNavigationPolygon outlines can not overlap vertices or edges inside same outline or with other outlines or have any intersections."
"\nAdd the outmost and largest outline first. To add holes inside this outline add the smaller outlines with opposite winding order.");
return;
}