Skip to content

Commit

Permalink
Fixed godotengine#41040 in an alternative way now that godotengine#39726
Browse files Browse the repository at this point in the history
 is reverted
  • Loading branch information
AndreaCatania authored and MarcusElg committed Oct 19, 2020
1 parent ac22735 commit 500300a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/bullet/space_bullet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 500300a

Please sign in to comment.