Skip to content
This repository was archived by the owner on Jun 29, 2024. It is now read-only.

Commit 7fa8d65

Browse files
committed
add more logging
1 parent 9f10c29 commit 7fa8d65

File tree

3 files changed

+191
-9
lines changed

3 files changed

+191
-9
lines changed

src/bodies/box2d_collision_object_2d.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,6 @@ void Box2DCollisionObject2D::_destroy_shape(Shape &shape, uint32_t p_shape_index
186186
if (!space) {
187187
return;
188188
}
189-
190-
b2WorldId space_handle = space->get_handle();
191-
ERR_FAIL_COND(!box2d::is_handle_valid(space_handle));
192-
193189
ERR_FAIL_COND(!box2d::is_handle_valid(shape.collider_handle));
194190

195191
if (area_detection_counter > 0) {
@@ -198,7 +194,7 @@ void Box2DCollisionObject2D::_destroy_shape(Shape &shape, uint32_t p_shape_index
198194
space->add_removed_collider(shape.collider_handle.handles[i], this, p_shape_index);
199195
}
200196
}
201-
box2d::collider_destroy(space_handle, shape.collider_handle);
197+
box2d::collider_destroy(shape.collider_handle);
202198
shape.collider_handle = box2d::invalid_fixture_handle(); // collider_handle = box2d ID
203199
}
204200

0 commit comments

Comments
 (0)