fishmonkey1 / radar-test

fuggin with da radars boiiiii
1 stars 0 forks source link

Drawing roads from Graph raises a NullReferenceException #32

Open BarndoBoi opened 6 hours ago

BarndoBoi commented 6 hours ago

While I was trying to make a video for Lexi to show how to set up the graph, I ran into an issue with the Draw Roads button. It raised an error when it attempted to check the length of Graph.nodes, which means I should start investigating inside the editor script and the GraphToRoads script. It shouldn't be a difficult fix, I just need to go through those files and do some refactoring

BarndoBoi commented 3 hours ago

Hecking heck, I think I found what the issue was with the GraphToRoads script. I placed an if statement in the wrong place. Girlboss programming right there.