1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 09:09:47 +00:00

Call Palettes.current_palette_set_color() immediately when changing the color of a swatch

This commit is contained in:
Emmanouil Papadeas 2024-11-22 15:26:30 +02:00
parent 77f6bcf07b
commit 996a234d0d

View file

@ -252,6 +252,7 @@ func _on_ColorPicker_color_changed(color: Color) -> void:
== Palettes.current_palette_get_selected_color_index(MOUSE_BUTTON_RIGHT)
):
Tools.assign_color(color, MOUSE_BUTTON_RIGHT)
Palettes.current_palette_set_color(edited_swatch_index, edited_swatch_color)
## Saves edited swatch to palette file when color selection dialog is closed