Added option to affect all frames in the HSVDialog

This commit is contained in:
OverloadedOrama 2020-07-24 03:28:39 +03:00
parent 1ce89c6577
commit 95ccd42e48
2 changed files with 7 additions and 1 deletions

View file

@ -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