From 996a234d0dc6350789232071f0e7a26bafc80cbc Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Fri, 22 Nov 2024 15:26:30 +0200 Subject: [PATCH] Call `Palettes.current_palette_set_color()` immediately when changing the color of a swatch --- src/Palette/PalettePanel.gd | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Palette/PalettePanel.gd b/src/Palette/PalettePanel.gd index 7cc64c42d..1c059f116 100644 --- a/src/Palette/PalettePanel.gd +++ b/src/Palette/PalettePanel.gd @@ -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