Fix broken GridMap Navigation due to wrong ... everything #61293
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a draft for linking and show that / what is being worked on.
Current devbuild code is too much a mixture of c++ and gdscript that needs some time to cleanup.
GridMap lovers rejoice!
Fixes some long-lasting GridMap Navigation issues.
(Click link for fullsized video to see something)
https://www.youtube.com/watch?v=hGs87qjZY7s
GridMap in Editor
![gridmap_bug_editor](https://user-images.githubusercontent.com/52464204/169715011-d5660588-bfa7-4d21-b229-01fbd5ca9f70.png)
GridMap with vertex merged cells that each have a navmesh at full cellsize.
![gridmap_bug_navmesh_gridsized](https://user-images.githubusercontent.com/52464204/169715036-c9f5543d-3712-45a8-9a88-749818010153.png)
GridMap with navmesh smaller than gridcell and edge margin merge (pink bars).
![gridmap_bug_navmesh_edgemargin](https://user-images.githubusercontent.com/52464204/169715045-7928c36e-014a-4131-8884-6faafb21bfdf.png)
GridMap edge merge also now works with odd, little navmesh crossings.
![gridmap_minimesh](https://user-images.githubusercontent.com/52464204/169715062-8d68a5b1-fb64-46c5-9972-ef5a94c21a50.png)
Fixes #17118
Fixes #27216
Fixes #36272
Fixes #56099