1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00
Files
godot/scene
smix8 3b9355be3f Fix TileMaps with origin offset placing NavPolygons wrong without a Navigation2D node
The legacy navigation was positioning baked TileMap navpolygons relative to the current Navigation2D node assuming that it is usually one of the parent nodes.

Without the deprecated Navigation2D node the default navigation map of the world_2d is used. This navigation map has no relative Node2D so it needs to use the global_transform of the TileMap to place navregions with the correct offset in case the TileMap is moved from the origin.

(cherry picked from commit 881e49c375)
2022-09-22 20:37:48 +02:00
..
2022-09-09 14:35:08 +02:00