      s->livempc_or_radarstate_changed = false;
    }
    // Draw vision path
    ui_draw_track(s, false, &s->track_vertices[0]);
    if (scene->engaged) {
      // Draw MPC path when engaged
      ui_draw_track(s, true, &s->track_vertices[1]);
    }
  }
  
 
</s> remove   if (scene->engaged) {
 </s> add   if (scene->controls_state.getEnabled()) { </s> remove     s->model_changed = false;
 </s> add  </s> remove   if(s->model_changed) {
 </s> add   if(s->sm->updated("model")) { </s> remove           s->alert_blinking_alpha -= (0.05*scene.alert_blinkingrate);
 </s> add           s->alert_blinking_alpha -= (0.05*alert_blinkingrate); </s> remove   s->model_changed = false;
  s->livempc_or_radarstate_changed = false;

 </s> add 
  if (scene->controls_state.getEnabled()) {
      s->livempc_or_radarstate_changed = false;
    }
    // Draw vision path
    ui_draw_track(s, false, &s->track_vertices[0]);
  if (scene->controls_state.getEnabled()) {
      // Draw MPC path when engaged
      ui_draw_track(s, true, &s->track_vertices[1]);
    }
  }
  
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