Merge pull request #46475 from RootKiller/fix_joint_collision

Fixed bug that caused collision not to be properly reenabled when joi…
This commit is contained in:
Rémi Verschelde 2021-02-28 14:27:18 +01:00 committed by GitHub
commit 0e77dc6e92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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();