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

Mirror image image effect now works with indexed mode

This commit is contained in:
Emmanouil Papadeas 2024-12-22 02:40:05 +02:00
parent a698668930
commit 616bd91c49

View file

@ -43,6 +43,8 @@ func _flip_image(cel: Image, affect_selection: bool, project: Project) -> void:
if flip_v.button_pressed: if flip_v.button_pressed:
selected.flip_y() selected.flip_y()
cel.blend_rect(selected, Rect2i(Vector2i.ZERO, selected.get_size()), rectangle.position) cel.blend_rect(selected, Rect2i(Vector2i.ZERO, selected.get_size()), rectangle.position)
if cel is ImageExtended:
cel.convert_rgb_to_indexed()
func _commit_undo(action: String, undo_data: Dictionary, project: Project) -> void: func _commit_undo(action: String, undo_data: Dictionary, project: Project) -> void: