NavigationPolygonInstance doesnt't reload well when reloading current scene

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By g5fighter

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:


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/navigation_polygon.cpp:260 @ make_polygons_from_outlines() @ _obstacle() @ make_obstacle() @ _ready()
First image before reloading

Second image after reloading

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

:bust_in_silhouette: Reply From: g5fighter

I finally found a way but it doesn’t solve the problem.
I use a transition scene, so when I wan’t to reload my scene I go first to that scene and then I charge my main scene.