You've already forked godot
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user