mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-07 10:59:49 +00:00
Get palette colors from all selected cels
This commit is contained in:
parent
de850ce8a1
commit
20f5a063fd
|
@ -148,7 +148,9 @@ func fill_new_palette_with_colors(pixels: Array, new_palette: Palette, add_alpha
|
||||||
var cels := []
|
var cels := []
|
||||||
match get_colors_from:
|
match get_colors_from:
|
||||||
GetColorsFrom.CurrentCel:
|
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:
|
GetColorsFrom.CurrentFrame:
|
||||||
for cel in current_project.frames[current_project.current_frame].cels:
|
for cel in current_project.frames[current_project.current_frame].cels:
|
||||||
cels.append(cel)
|
cels.append(cel)
|
||||||
|
|
Loading…
Reference in a new issue