From 58d4e7efabde388a7ab73c7c4b9716eab72d3ab6 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Thu, 28 Nov 2024 17:55:55 +0200 Subject: [PATCH] Fix placing tiles not working when switching to indexed mode --- src/Classes/Cels/CelTileMap.gd | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Classes/Cels/CelTileMap.gd b/src/Classes/Cels/CelTileMap.gd index feee70742..acc98a89c 100644 --- a/src/Classes/Cels/CelTileMap.gd +++ b/src/Classes/Cels/CelTileMap.gd @@ -316,6 +316,7 @@ func _update_cell(cell_position: int) -> void: if not tiles_equal(cell_position, image_portion, transformed_tile): var tile_size := transformed_tile.get_size() image.blit_rect(transformed_tile, Rect2i(Vector2i.ZERO, tile_size), coords) + image.convert_rgb_to_indexed() func _update_cel_portions() -> void: