Skip to content

Commit

Permalink
Merge pull request #10365 from RandomShaper/fix-10074
Browse files Browse the repository at this point in the history
Keep shapes bound to out-of-tree 3D physics objects
  • Loading branch information
reduz authored Aug 16, 2017
2 parents 6380975 + 22daecf commit 603b262
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions scene/3d/collision_shape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,6 @@ void CollisionShape::_notification(int p_what) {
parent->shape_owner_set_transform(owner_id, get_transform());
}
} break;
case NOTIFICATION_EXIT_TREE: {
if (parent) {
parent->remove_shape_owner(owner_id);
}
owner_id = 0;
parent = NULL;
} break;
case NOTIFICATION_UNPARENTED: {
if (parent) {
parent->remove_shape_owner(owner_id);
Expand Down

0 comments on commit 603b262

Please sign in to comment.