fixed navigation tile issue, fixes #1581
This commit is contained in:
@ -406,6 +406,7 @@ void TileMap::_update_dirty_quadrants() {
|
||||
|
||||
if (navigation) {
|
||||
Ref<NavigationPolygon> navpoly = tile_set->tile_get_navigation_polygon(c.id);
|
||||
if (navpoly.is_valid()) {
|
||||
Vector2 npoly_ofs = tile_set->tile_get_navigation_polygon_offset(c.id);
|
||||
Matrix32 xform;
|
||||
xform.set_origin(offset.floor()+q.pos);
|
||||
@ -418,6 +419,7 @@ void TileMap::_update_dirty_quadrants() {
|
||||
np.xform=xform;
|
||||
q.navpoly_ids[E->key()]=np;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Ref<OccluderPolygon2D> occluder=tile_set->tile_get_light_occluder(c.id);
|
||||
|
||||
Reference in New Issue
Block a user