Skip to content

Commit

Permalink
Fix ragdoll simulation when parent was readded to scene
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyqiu committed May 19, 2021
1 parent c340ed6 commit a701927
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scene/3d/physics_body_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1958,6 +1958,8 @@ void PhysicalBone3D::_notification(int p_what) {
if (parent_skeleton) {
if (-1 != bone_id) {
parent_skeleton->unbind_physical_bone_from_bone(bone_id);
parent_skeleton->unbind_child_node_from_bone(bone_id, this);
bone_id = -1;
}
}
parent_skeleton = nullptr;
Expand Down

0 comments on commit a701927

Please sign in to comment.