mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Fix TileMap NavigationServer 'Invalid ID' error
Fixes NavigationServer 'Invalid ID' error of the TileMap. The issue was not caused directly by the TileMap but with the late call to get_world_2d()->get_navigation_map() while everything is shut down abruptly e.g. game window closed or Editor "Reload Saved Scene" function.
This commit is contained in:
@@ -212,6 +212,7 @@ private:
|
||||
HashMap<Vector2i, TileMapQuadrant> quadrant_map;
|
||||
SelfList<TileMapQuadrant>::List dirty_quadrant_list;
|
||||
RID navigation_map;
|
||||
bool uses_world_navigation_map = false;
|
||||
};
|
||||
LocalVector<TileMapLayer> layers;
|
||||
int selected_layer = -1;
|
||||
|
||||
Reference in New Issue
Block a user