diff --git a/src/UI/Dialogs/HSVDialog.gd b/src/UI/Dialogs/HSVDialog.gd index 7681968..380c494 100644 --- a/src/UI/Dialogs/HSVDialog.gd +++ b/src/UI/Dialogs/HSVDialog.gd @@ -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 diff --git a/src/UI/Dialogs/HSVDialog.tscn b/src/UI/Dialogs/HSVDialog.tscn index fbbb3eb..319edd1 100644 --- a/src/UI/Dialogs/HSVDialog.tscn +++ b/src/UI/Dialogs/HSVDialog.tscn @@ -150,7 +150,7 @@ margin_right = 263.0 margin_bottom = 24.0 mouse_default_cursor_shape = 2 text = "Current cel" -items = [ "Current cel", null, false, 0, null, "Current frame", null, false, 1, null, "All frames", null, true, 2, null, "All projects", null, true, 3, null ] +items = [ "Current cel", null, false, 0, null, "Current frame", null, false, 1, null, "All frames", null, false, 2, null, "All projects", null, true, 3, null ] selected = 0 [node name="HBoxContainer2" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]