We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86e5d04 commit add4fe4Copy full SHA for add4fe4
pymunk/shapes.py
@@ -63,9 +63,9 @@ def shapefree(cp_shape: ffi.CData) -> None:
63
if cp_space != ffi.NULL:
64
cp.cpSpaceRemoveShape(cp_space, cp_shape)
65
66
- cp_body = cp.cpShapeGetBody(cp_shape)
67
- if cp_body != ffi.NULL:
68
- cp.cpShapeSetBody(cp_shape, ffi.NULL)
+ # cp_body = cp.cpShapeGetBody(cp_shape)
+ # if cp_body != ffi.NULL:
+ # cp.cpShapeSetBody(cp_shape, ffi.NULL)
69
cp.cpShapeFree(cp_shape)
70
71
self._shape = ffi.gc(_shape, shapefree)
0 commit comments