From 616bd91c49031b8069d94119b813ff5de52ee970 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Sun, 22 Dec 2024 02:40:05 +0200 Subject: [PATCH] Mirror image image effect now works with indexed mode --- src/UI/Dialogs/ImageEffects/FlipImageDialog.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/UI/Dialogs/ImageEffects/FlipImageDialog.gd b/src/UI/Dialogs/ImageEffects/FlipImageDialog.gd index 592273867..c1b388026 100644 --- a/src/UI/Dialogs/ImageEffects/FlipImageDialog.gd +++ b/src/UI/Dialogs/ImageEffects/FlipImageDialog.gd @@ -43,6 +43,8 @@ func _flip_image(cel: Image, affect_selection: bool, project: Project) -> void: if flip_v.button_pressed: selected.flip_y() 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: