1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Merge pull request #62300 from smix8/navigation_map_force_update_4.x

This commit is contained in:
Rémi Verschelde
2022-06-24 10:13:07 +02:00
committed by GitHub
8 changed files with 43 additions and 0 deletions

View File

@@ -602,6 +602,15 @@ void GodotNavigationServer::flush_queries() {
commands.clear();
}
void GodotNavigationServer::map_force_update(RID p_map) {
NavMap *map = map_owner.get_or_null(p_map);
ERR_FAIL_COND(map == nullptr);
flush_queries();
map->sync();
}
void GodotNavigationServer::process(real_t p_delta_time) {
flush_queries();