[BUG] Getting contours on layered grid graph causes inifinte loop

Hi there @aron_granberg ,

I saw another post in the past that was similar to my issue ([Bug] Infinite loop while getting contours) but I am still having this issue even though it looked like it was solved?

Anyways, my issue is using GraphUtilities.GetContours on a layered grid graph in a very basic scene and whenever I run it unity just runs forever and looks like it is going through an infinite loop. I have an example unity project I prepared to reproduce the issue, what might be the best way to get it to you?

Thanks!

@aron_granberg I sent you an email containing the google drive link to my project file since I haven’t heard back from you. All you need to do is scan the terrain and that will cause the infinite loop. I tracked the infinite loop cause down to TestGetContours.cs line 23 when I call GraphUtilities.GetContours(graph). Every time I call GetContours I get an infinite loop and I don’t know why. Any help you be greatly appreciated!

Thanks!