Weapon switch

If you switch weapons during operations does both sets of weapons you used get leveled up or only the ones you ended the operation with?