From fdea2698053b616d0805ef3c4501a76945ce82ef Mon Sep 17 00:00:00 2001 From: smix8 <52464204+smix8@users.noreply.github.com> Date: Wed, 22 Jun 2022 10:16:38 +0200 Subject: Add NavigationServer map_force_update() function Adds map_force_update() function to NavigationServer. This function immediately flushes the Navigationserver command queue and recalculates all navigationmeshes and region connections for a specific map. --- servers/navigation_server_3d.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'servers/navigation_server_3d.h') diff --git a/servers/navigation_server_3d.h b/servers/navigation_server_3d.h index 9c04d68622..52e2c31924 100644 --- a/servers/navigation_server_3d.h +++ b/servers/navigation_server_3d.h @@ -94,6 +94,8 @@ public: virtual Array map_get_regions(RID p_map) const = 0; virtual Array map_get_agents(RID p_map) const = 0; + virtual void map_force_update(RID p_map) = 0; + /// Creates a new region. virtual RID region_create() const = 0; -- cgit v1.2.3