diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-03-20 09:34:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-20 09:34:53 +0100 |
commit | 87404bda8a48eafd98630a7bbe4eb80e9c9969fb (patch) | |
tree | e8dec3434286fb09893a6c1a0c0bb58f2960a0b8 /scene/2d/navigation_agent_2d.cpp | |
parent | 63f77efdc6a1e178d356f33509cebb33b0e2c8e2 (diff) | |
parent | c7cf624836c50807560b6efa46261e417f9c3295 (diff) |
Merge pull request #37169 from AndreaCatania/AndreaCatania-patch-2
Fixes navigation path reset
Diffstat (limited to 'scene/2d/navigation_agent_2d.cpp')
-rw-r--r-- | scene/2d/navigation_agent_2d.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/2d/navigation_agent_2d.cpp b/scene/2d/navigation_agent_2d.cpp index f5fe113f29..e345a076ae 100644 --- a/scene/2d/navigation_agent_2d.cpp +++ b/scene/2d/navigation_agent_2d.cpp @@ -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 { |