Skip to content

Commit

Permalink
Maintain selected color when adding to palette (mbrlabs#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
borboss authored Jul 4, 2022
1 parent e224de7 commit 8f13ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lorien/UI/Dialogs/EditPaletteDialog.gd
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func _on_NameLineEdit_text_changed(new_text: String) -> void:
func _on_AddColorButton_pressed() -> void:
if _palette.colors.size() < Config.MAX_PALETTE_SIZE:
_palette_edited = true
var new_color := Color.white
var new_color := _palette.colors[_active_button_index]

# Create a new color array with the new color
var arr := []
Expand Down

0 comments on commit 8f13ad4

Please sign in to comment.