Bugfix: Update transform of collision shape on NOTIFICATION_PARENTED (fixes invalid transform of collision shape in cases where the node is not supposed to enter the scene tree)

This commit is contained in:
Oliver Dick 2021-02-06 02:41:16 +01:00
parent 3e2e21434d
commit 09924d6d73

View file

@ -83,6 +83,7 @@ void CollisionShape::_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: {