mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
+ Added ignore flags to autotile bitmask
+ Added ignore functionality to tileset editor + Updated tileset editor autotile tooltip + Autotile ignore bits are processed and rendered correctl
This commit is contained in:
parent
5b00cd89d3
commit
a3af9d5714
5 changed files with 120 additions and 49 deletions
|
|
@ -477,10 +477,10 @@ void TileMapEditor::_update_palette() {
|
|||
if (sel_tile != TileMap::INVALID_CELL) {
|
||||
if ((manual_autotile && tileset->tile_get_tile_mode(sel_tile) == TileSet::AUTO_TILE) || tileset->tile_get_tile_mode(sel_tile) == TileSet::ATLAS_TILE) {
|
||||
|
||||
const Map<Vector2, uint16_t> &tiles2 = tileset->autotile_get_bitmask_map(sel_tile);
|
||||
const Map<Vector2, uint32_t> &tiles2 = tileset->autotile_get_bitmask_map(sel_tile);
|
||||
|
||||
Vector<Vector2> entries2;
|
||||
for (const Map<Vector2, uint16_t>::Element *E = tiles2.front(); E; E = E->next()) {
|
||||
for (const Map<Vector2, uint32_t>::Element *E = tiles2.front(); E; E = E->next()) {
|
||||
entries2.push_back(E->key());
|
||||
}
|
||||
entries2.sort();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue