Skip to content

Commit

Permalink
dont change turn colors when inter is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Uriopass committed Aug 13, 2023
1 parent 42899f2 commit ca9b731
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions native_app/src/gui/roadeditor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ pub fn roadeditor(goria: &Egregoria, uiworld: &mut UiWorld) {
if let Some(inter) = map.intersections().get(id) {
let lanes = map.lanes();
for turn in inter.turns() {
let p = unwrap_or!(turn.points.get(turn.points.n_points() / 2), continue);
let r = common::rand::rand2(p.x, p.y);
let r = common::rand::randu64(common::hash_u64(turn.id));
let col = Color::hsv(r * 360.0, 0.8, 0.6, 0.5);

let or_src = unwrap_cont!(lanes.get(turn.id.src)).orientation_from(inter.id);
Expand Down

0 comments on commit ca9b731

Please sign in to comment.