diff options
author | Andrea Catania <info@andreacatania.com> | 2020-10-08 13:10:48 +0200 |
---|---|---|
committer | Andrea Catania <info@andreacatania.com> | 2020-10-08 13:10:48 +0200 |
commit | 2e8cb8a9e28ab6e1ba3b0966bfcb3ea262a5e1a0 (patch) | |
tree | b0b47b222e2b72db024340a5f860bdc28f5dd834 /modules | |
parent | 1829c67762f3bf71a4991b25bbc207754671754c (diff) |
Fixed #41040 in an alternative way now that #39726 is reverted
Diffstat (limited to 'modules')
-rw-r--r-- | modules/bullet/space_bullet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/bullet/space_bullet.cpp b/modules/bullet/space_bullet.cpp index 7c94cba3d3..c581d1804e 100644 --- a/modules/bullet/space_bullet.cpp +++ b/modules/bullet/space_bullet.cpp @@ -177,7 +177,7 @@ bool BulletPhysicsDirectSpaceState::cast_motion(const RID &p_shape, const Transf bt_xform_to.getOrigin() += bt_motion; if ((bt_xform_to.getOrigin() - bt_xform_from.getOrigin()).fuzzyZero()) { - shape->destroy_bt_shape(btShape); + bulletdelete(btShape); return false; } |