From 2e8cb8a9e28ab6e1ba3b0966bfcb3ea262a5e1a0 Mon Sep 17 00:00:00 2001 From: Andrea Catania Date: Thu, 8 Oct 2020 13:10:48 +0200 Subject: [PATCH] Fixed #41040 in an alternative way now that #39726 is reverted --- modules/bullet/space_bullet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/bullet/space_bullet.cpp b/modules/bullet/space_bullet.cpp index 7c94cba3d3a2..c581d1804ec9 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; }