From 585f83e28aeb9c7abd051b61efb991e26a86a46d Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Sat, 25 Jul 2020 19:35:46 +0300 Subject: [PATCH] Fixed Invert and Desaturate not working on the correct cel --- src/UI/Dialogs/GradientDialog.gd | 1 - src/UI/TopMenuContainer.gd | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/UI/Dialogs/GradientDialog.gd b/src/UI/Dialogs/GradientDialog.gd index 9c0ff7865..95dc783d3 100644 --- a/src/UI/Dialogs/GradientDialog.gd +++ b/src/UI/Dialogs/GradientDialog.gd @@ -46,5 +46,4 @@ func _on_OptionButton_item_selected(_index : int) -> void: func _on_GradientDialog_confirmed() -> void: Global.canvas.handle_undo("Draw") DrawingAlgos.generate_gradient(current_cel, [color1.color, color2.color], steps.value, direction.selected) - Global.canvas.update_texture(Global.current_project.current_layer) Global.canvas.handle_redo("Draw") diff --git a/src/UI/TopMenuContainer.gd b/src/UI/TopMenuContainer.gd index 534eab882..920a1e1aa 100644 --- a/src/UI/TopMenuContainer.gd +++ b/src/UI/TopMenuContainer.gd @@ -300,7 +300,7 @@ func toggle_fullscreen() -> void: func image_menu_id_pressed(id : int) -> void: if Global.current_project.layers[Global.current_project.current_layer].locked: # No changes if the layer is locked return - var image : Image = Global.current_project.frames[0].cels[0].image + var image : Image = Global.current_project.frames[Global.current_project.current_frame].cels[Global.current_project.current_layer].image match id: 0: # Scale Image show_scale_image_popup()