mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-23 20:26:04 +00:00
Merge pull request #24560 from guilhermefelipecgs/fix_24549
Add EDITMODE_PRIORITY for ATLAS_TILE
This commit is contained in:
@@ -868,8 +868,17 @@ void TileMap::update_cell_bitmask(int p_x, int p_y) {
|
||||
_make_quadrant_dirty(Q);
|
||||
|
||||
} else if (tile_set->tile_get_tile_mode(id) == TileSet::SINGLE_TILE) {
|
||||
|
||||
E->get().autotile_coord_x = 0;
|
||||
E->get().autotile_coord_y = 0;
|
||||
} else if (tile_set->tile_get_tile_mode(id) == TileSet::ATLAS_TILE) {
|
||||
|
||||
if (tile_set->autotile_get_bitmask(id, Vector2(p_x, p_y)) == TileSet::BIND_CENTER) {
|
||||
Vector2 coord = tile_set->atlastile_get_subtile_by_priority(id, this, Vector2(p_x, p_y));
|
||||
|
||||
E->get().autotile_coord_x = (int)coord.x;
|
||||
E->get().autotile_coord_y = (int)coord.y;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user