  
  static void ui_draw_vision_lanes(UIState *s) {
    const UIScene *scene = &s->scene;
    model_path_vertices_data *pvd = &s->model_path_vertices[0];
    if(s->model_changed) {
      update_all_lane_lines_data(s, scene->model.left_lane, pvd);
      update_all_lane_lines_data(s, scene->model.right_lane, pvd + MODEL_LANE_PATH_CNT);
      s->model_changed = false;
    }
    // Draw left lane edge
 
</s> remove     s->model_changed = false;
 </s> add  </s> remove   if (scene->engaged) {
 </s> add   if (scene->controls_state.getEnabled()) { </s> remove   const int face_x = (valid_frame_x + face_size + (bdr_s * 2)) + (scene->is_rhd ? valid_frame_w - box_h / 2:0);
  const int face_y = (box_y + box_h - face_size - bdr_s - (bdr_s * 1.5));
  ui_draw_circle_image(s->vg, face_x, face_y, face_size, s->img_face, scene->face_prob > 0.4);
 </s> add   const int x = (valid_frame_x + face_size + (bdr_s * 2)) + (scene->is_rhd ? valid_frame_w - box_h / 2:0);
  const int y = (box_y + box_h - face_size - bdr_s - (bdr_s * 1.5));
  ui_draw_circle_image(s->vg, x, y, face_size, s->img_face, scene->driver_state.getFaceProb() > 0.4); </s> remove   s->model_changed = false;
  s->livempc_or_radarstate_changed = false;

 </s> add  </s> remove   draw_chevron(s, d_rel, y_rel, 25, nvgRGBA(201, 34, 49, fillAlpha), COLOR_YELLOW);
 </s> add   draw_chevron(s, d_rel, lead.getYRel(), 25, nvgRGBA(201, 34, 49, fillAlpha), COLOR_YELLOW);
  if(s->sm->updated("model")) {
  
  static void ui_draw_vision_lanes(UIState *s) {
    const UIScene *scene = &s->scene;
    model_path_vertices_data *pvd = &s->model_path_vertices[0];
  if(s->sm->updated("model")) {
      update_all_lane_lines_data(s, scene->model.left_lane, pvd);
      update_all_lane_lines_data(s, scene->model.right_lane, pvd + MODEL_LANE_PATH_CNT);
      s->model_changed = false;
    }
    // Draw left lane edge
keep keep keep keep replace keep keep keep keep keep
 ui.cc: remove variables from UIScene, use event::Reader to get data  (#1585)

* use struct to store lead status

* remove white space

* use RadarState::LeadData::Reader

* use reader to get thermal data

* use reader

* continue

* remove variables

reset submodules,fix some errors

reset submodules

revert

* remove s->scene.gps_planner_active

* modify

* cleanup

* done

* resolve conflict

* remove irrelevant comment

* remove white space 
selfdrive/ui/paint.cc