Unverified Commit 87404bda by Rémi Verschelde Committed by GitHub

Merge pull request #37169 from AndreaCatania/AndreaCatania-patch-2

Fixes navigation path reset
parents 63f77efd c7cf6248
......@@ -215,6 +215,7 @@ void NavigationAgent2D::set_target_location(Vector2 p_location) {
navigation_path.clear();
target_reached = false;
navigation_finished = false;
update_frame_id = 0;
}
Vector2 NavigationAgent2D::get_target_location() const {
......
......@@ -234,6 +234,7 @@ void NavigationAgent::set_target_location(Vector3 p_location) {
navigation_path.clear();
target_reached = false;
navigation_finished = false;
update_frame_id = 0;
}
Vector3 NavigationAgent::get_target_location() const {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment