1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-24 15:26:15 +00:00

[Navigation] Add some missing compile checks

This commit is contained in:
A Thousand Ships
2024-02-22 20:21:43 +01:00
parent b15105a358
commit 12cecf726f
4 changed files with 16 additions and 0 deletions

View File

@@ -222,7 +222,11 @@ void GodotNavigationServer2D::bake_from_source_geometry_data_async(const Ref<Nav
}
bool GodotNavigationServer2D::is_baking_navigation_polygon(Ref<NavigationPolygon> p_navigation_polygon) const {
#ifdef CLIPPER2_ENABLED
return NavMeshGenerator2D::get_singleton()->is_baking(p_navigation_polygon);
#else
return false;
#endif
}
GodotNavigationServer2D::GodotNavigationServer2D() {}