1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

Fixed #41040 in an alternative way now that #39726 is reverted

This commit is contained in:
Andrea Catania
2020-10-08 13:10:48 +02:00
parent 1829c67762
commit 2e8cb8a9e2

View File

@@ -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;
}