diff options
| author | Juan Linietsky | 2016-01-22 19:49:05 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-01-22 19:49:05 -0300 |
| commit | fe46f0d2b2292f1cab1135b753acdeba3aa0aa38 (patch) | |
| tree | 773d391a5747e6c4737e0379158a5b95e6e5af90 | |
| parent | b30839fb08e4e17ca9ba3a76aa46bb263c62e7b6 (diff) | |
| download | godot-fe46f0d2b2292f1cab1135b753acdeba3aa0aa38.tar.gz godot-fe46f0d2b2292f1cab1135b753acdeba3aa0aa38.tar.zst godot-fe46f0d2b2292f1cab1135b753acdeba3aa0aa38.zip | |
-leftover debug code was causing a crash in navigation 2d, removed it and fixes #3374
| -rw-r--r-- | scene/2d/navigation2d.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/2d/navigation2d.cpp b/scene/2d/navigation2d.cpp index c7542407c..fe1760b84 100644 --- a/scene/2d/navigation2d.cpp +++ b/scene/2d/navigation2d.cpp @@ -494,6 +494,8 @@ Vector<Vector2> Navigation2D::get_simple_path(const Vector2& p_start, const Vect open_list.erase(least_cost_poly); } +#if 0 +debug path { Polygon *p=end_poly; int idx=0; @@ -514,6 +516,7 @@ Vector<Vector2> Navigation2D::get_simple_path(const Vector2& p_start, const Vect break; } } +#endif if (found_route) { Vector<Vector2> path; |
