We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 372e9ab + 671839d commit 6fb5d9eCopy full SHA for 6fb5d9e
scene/2d/tile_map.cpp
@@ -617,6 +617,8 @@ void TileMapLayer::_navigation_update() {
617
uses_world_navigation_map = true;
618
} else {
619
RID new_layer_map = NavigationServer2D::get_singleton()->map_create();
620
+ // Set the default NavigationPolygon cell_size on the new map as a mismatch causes an error.
621
+ NavigationServer2D::get_singleton()->map_set_cell_size(new_layer_map, 1.0);
622
NavigationServer2D::get_singleton()->map_set_active(new_layer_map, true);
623
navigation_map = new_layer_map;
624
uses_world_navigation_map = false;
0 commit comments