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:
commit
0e77dc6e92
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue