mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 19:34:43 -04:00
Fixed issue with cel opacity affecting the actual image pixels on export
This commit is contained in:
parent
a19a2fb0d5
commit
9e0c62773c
2 changed files with 3 additions and 1 deletions
|
@ -325,7 +325,8 @@ func blend_layers(image: Image, canvas: Canvas, origin: Vector2 = Vector2(0, 0))
|
|||
var layer_i := 0
|
||||
for layer in canvas.layers:
|
||||
if Global.layers[layer_i][1]:
|
||||
var layer_image : Image = layer[0]
|
||||
var layer_image := Image.new()
|
||||
layer_image.copy_from(layer[0])
|
||||
layer_image.lock()
|
||||
if layer[2] < 1: # If we have layer transparency
|
||||
for xx in layer_image.get_size().x:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue