Fixed bug that caused collision not to be properly reenabled when joint between two bodies is destroyed

This commit is contained in:
Eryk Dwornicki 2021-02-27 16:38:58 +01:00
parent 0e8fae1038
commit 519e314bea

View file

@ -64,6 +64,7 @@ void Joint3D::_body_exit_tree(const ObjectID &p_body_id) {
void Joint3D::_update_joint(bool p_only_free) {
if (ba.is_valid() && bb.is_valid()) {
PhysicsServer3D::get_singleton()->body_remove_collision_exception(ba, bb);
PhysicsServer3D::get_singleton()->body_remove_collision_exception(bb, ba);
}
ba = RID();