mirror of
https://github.com/godotengine/godot.git
synced 2025-01-08 11:11:55 +00:00
Merge pull request #10376 from RandomShaper/fix-nav-double-point
Fix double point in Navigation2D
This commit is contained in:
commit
a8ceb54abf
@ -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…
Reference in New Issue
Block a user