1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 09:09:47 +00:00

Don't fill color when creating a new empty frame if the color is transparent

This commit is contained in:
Emmanouil Papadeas 2022-05-15 22:05:35 +03:00
parent c1759c74eb
commit 1e0eb19c15

View file

@ -111,7 +111,7 @@ func new_empty_frame() -> Frame:
for l in layers: # Create as many cels as there are layers
var image := Image.new()
image.create(size.x, size.y, false, Image.FORMAT_RGBA8)
if bottom_layer:
if bottom_layer and fill_color.a > 0:
image.fill(fill_color)
frame.cels.append(Cel.new(image, 1))
bottom_layer = false