diff --git a/modules/navigation/navigation_mesh_generator.cpp b/modules/navigation/navigation_mesh_generator.cpp index c18a5f62d..06ccd6cf1 100644 --- a/modules/navigation/navigation_mesh_generator.cpp +++ b/modules/navigation/navigation_mesh_generator.cpp @@ -194,6 +194,9 @@ void NavigationMeshGenerator::_parse_geometry(const Transform &p_navmesh_xform, uint32_t shape_owner = E->get(); const int shape_count = static_body->shape_owner_get_shape_count(shape_owner); for (int i = 0; i < shape_count; i++) { + if (static_body->is_shape_owner_disabled(i)) { + continue; + } Ref s = static_body->shape_owner_get_shape(shape_owner, i); if (s.is_null()) { continue;