mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-31 07:29:49 +00:00
Fixed Invert and Desaturate not working on the correct cel
This commit is contained in:
parent
186e2259ac
commit
585f83e28a
|
@ -46,5 +46,4 @@ func _on_OptionButton_item_selected(_index : int) -> void:
|
||||||
func _on_GradientDialog_confirmed() -> void:
|
func _on_GradientDialog_confirmed() -> void:
|
||||||
Global.canvas.handle_undo("Draw")
|
Global.canvas.handle_undo("Draw")
|
||||||
DrawingAlgos.generate_gradient(current_cel, [color1.color, color2.color], steps.value, direction.selected)
|
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")
|
Global.canvas.handle_redo("Draw")
|
||||||
|
|
|
@ -300,7 +300,7 @@ func toggle_fullscreen() -> void:
|
||||||
func image_menu_id_pressed(id : int) -> 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
|
if Global.current_project.layers[Global.current_project.current_layer].locked: # No changes if the layer is locked
|
||||||
return
|
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:
|
match id:
|
||||||
0: # Scale Image
|
0: # Scale Image
|
||||||
show_scale_image_popup()
|
show_scale_image_popup()
|
||||||
|
|
Loading…
Reference in a new issue