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:
parent
77f6bcf07b
commit
996a234d0d
|
@ -252,6 +252,7 @@ func _on_ColorPicker_color_changed(color: Color) -> void:
|
||||||
== Palettes.current_palette_get_selected_color_index(MOUSE_BUTTON_RIGHT)
|
== Palettes.current_palette_get_selected_color_index(MOUSE_BUTTON_RIGHT)
|
||||||
):
|
):
|
||||||
Tools.assign_color(color, 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
|
## Saves edited swatch to palette file when color selection dialog is closed
|
||||||
|
|
Loading…
Reference in a new issue