mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
Don't fill color when creating a new empty frame if the color is transparent
This commit is contained in:
parent
c1759c74eb
commit
1e0eb19c15
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue