mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-03-03 01:53:15 +00:00
Get palette colors from all selected cels
This commit is contained in:
parent
de850ce8a1
commit
20f5a063fd
1 changed files with 3 additions and 1 deletions
|
@ -148,7 +148,9 @@ func fill_new_palette_with_colors(pixels: Array, new_palette: Palette, add_alpha
|
|||
var cels := []
|
||||
match get_colors_from:
|
||||
GetColorsFrom.CurrentCel:
|
||||
cels.append(current_project.frames[current_project.current_frame].cels[current_project.current_layer])
|
||||
for cel_index in current_project.selected_cels:
|
||||
var cel : Cel = current_project.frames[cel_index[0]].cels[cel_index[1]]
|
||||
cels.append(cel)
|
||||
GetColorsFrom.CurrentFrame:
|
||||
for cel in current_project.frames[current_project.current_frame].cels:
|
||||
cels.append(cel)
|
||||
|
|
Loading…
Add table
Reference in a new issue