We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5bfe13 commit dbdcc8eCopy full SHA for dbdcc8e
modules/navigation/navigation_mesh_generator.cpp
@@ -207,11 +207,11 @@ void NavigationMeshGenerator::_parse_geometry(const Transform3D &p_navmesh_trans
207
List<uint32_t> shape_owners;
208
static_body->get_shape_owners(&shape_owners);
209
for (uint32_t shape_owner : shape_owners) {
210
+ if (static_body->is_shape_owner_disabled(shape_owner)) {
211
+ continue;
212
+ }
213
const int shape_count = static_body->shape_owner_get_shape_count(shape_owner);
214
for (int i = 0; i < shape_count; i++) {
- if (static_body->is_shape_owner_disabled(i)) {
- continue;
- }
215
Ref<Shape3D> s = static_body->shape_owner_get_shape(shape_owner, i);
216
if (s.is_null()) {
217
continue;
0 commit comments