mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #10377 from RandomShaper/fix-nav-double-point-2.1
Fix double point in Navigation2D (2.1)
This commit is contained in:
commit
1f0385cc28
1 changed files with 2 additions and 1 deletions
|
|
@ -646,7 +646,8 @@ debug path
|
|||
break;
|
||||
}
|
||||
|
||||
path.push_back(begin_point);
|
||||
if (path[path.size() - 1].distance_to(begin_point) > CMP_EPSILON)
|
||||
path.push_back(begin_point);
|
||||
|
||||
path.invert();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue