From c7cf624836c50807560b6efa46261e417f9c3295 Mon Sep 17 00:00:00 2001 From: Andrea Catania Date: Thu, 19 Mar 2020 18:05:31 +0100 Subject: Fixes navigation path reset --- scene/3d/navigation_agent.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'scene/3d/navigation_agent.cpp') diff --git a/scene/3d/navigation_agent.cpp b/scene/3d/navigation_agent.cpp index 728fc947e9..3da1ea66d6 100644 --- a/scene/3d/navigation_agent.cpp +++ b/scene/3d/navigation_agent.cpp @@ -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 { -- cgit v1.2.3