Hello, i'm making a game in which I use the NavigationPolygonInstance.
In my game I make obstacles by code, and it works well, but when I use the line of code:
get_tree().reload_current_scene()
it seems like the last NavigationPolygonInstance it isn't restarted and saves the last shape, after making the obstacles and throw this error:
E 0:00:04:0071 NavigationPolygon: Convex partition failed!
scene/2d/navigationpolygon.cpp:260 @ makepolygonsfromoutlines()
Navigation2D.gd:56 @ obstacle()
CajaDeRecursos.gd:32 @ makeobstacle()
mainScript.gd:33 @ _ready()


I don't have this error if I go to another scene and then I return to this.
Here is the project:Link with project
PD: the project is very spanglish