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