Skip to content

Commit

Permalink
Bugfix: Update transform of collision shape on NOTIFICATION_PARENTED …
Browse files Browse the repository at this point in the history
…(fixes invalid transform of collision shape in cases where the node is not supposed to enter the scene tree)
  • Loading branch information
revilo committed Feb 6, 2021
1 parent fa2f769 commit f1432f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scene/3d/collision_shape_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ void CollisionShape3D::_notification(int p_what) {
if (shape.is_valid()) {
parent->shape_owner_add_shape(owner_id, shape);
}
_update_in_shape_owner();
}
} break;
case NOTIFICATION_ENTER_TREE: {
Expand Down

0 comments on commit f1432f2

Please sign in to comment.