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:
parent
45ae8b7dee
commit
58d4e7efab
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue