mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-30 23:04:43 -04:00
Added option to affect all frames in the HSVDialog
This commit is contained in:
parent
1ce89c6577
commit
95ccd42e48
2 changed files with 7 additions and 1 deletions
|
@ -50,6 +50,12 @@ func _on_Apply_pressed() -> void:
|
|||
for cel in Global.current_project.frames[Global.current_project.current_frame].cels:
|
||||
DrawingAlgos.adjust_hsv(cel.image, hue_slider.value, sat_slider.value, val_slider.value, pixels)
|
||||
Global.canvas.handle_redo("Draw", Global.current_project, -1)
|
||||
elif affect == ALL_FRAMES:
|
||||
Global.canvas.handle_undo("Draw", Global.current_project, -1, -1)
|
||||
for frame in Global.current_project.frames:
|
||||
for cel in frame.cels:
|
||||
DrawingAlgos.adjust_hsv(cel.image, hue_slider.value, sat_slider.value, val_slider.value, pixels)
|
||||
Global.canvas.handle_redo("Draw", Global.current_project, -1, -1)
|
||||
reset()
|
||||
visible = false
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue