1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 09:39:48 +00:00

Fix placing tiles not working when switching to indexed mode

This commit is contained in:
Emmanouil Papadeas 2024-11-28 17:55:55 +02:00
parent 45ae8b7dee
commit 58d4e7efab

View file

@ -316,6 +316,7 @@ func _update_cell(cell_position: int) -> void:
if not tiles_equal(cell_position, image_portion, transformed_tile): if not tiles_equal(cell_position, image_portion, transformed_tile):
var tile_size := transformed_tile.get_size() var tile_size := transformed_tile.get_size()
image.blit_rect(transformed_tile, Rect2i(Vector2i.ZERO, tile_size), coords) image.blit_rect(transformed_tile, Rect2i(Vector2i.ZERO, tile_size), coords)
image.convert_rgb_to_indexed()
func _update_cel_portions() -> void: func _update_cel_portions() -> void: