Browse Source

Merge pull request #46475 from RootKiller/fix_joint_collision

Fixed bug that caused collision not to be properly reenabled when joi…
Rémi Verschelde 4 years ago
parent
commit
0e77dc6e92
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scene/3d/physics_joint_3d.cpp

+ 1 - 0
scene/3d/physics_joint_3d.cpp

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