From bdef545727065645ca162c46b214d6cf97f5b367 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Sat, 17 Aug 2024 02:38:27 +0300 Subject: [PATCH] Fix issue when merging two layers, where if the bottom layer had layer/cel transparency, the transparency would be applied in the content destructively --- src/UI/Timeline/AnimationTimeline.gd | 1 + 1 file changed, 1 insertion(+) diff --git a/src/UI/Timeline/AnimationTimeline.gd b/src/UI/Timeline/AnimationTimeline.gd index 12670d988..2d40b3813 100644 --- a/src/UI/Timeline/AnimationTimeline.gd +++ b/src/UI/Timeline/AnimationTimeline.gd @@ -1023,6 +1023,7 @@ func _on_MergeDownLayer_pressed() -> void: textures.append(top_image) var metadata_image := Image.create(2, 4, false, Image.FORMAT_R8) DrawingAlgos.set_layer_metadata_image(bottom_layer, bottom_cel, metadata_image, 0) + metadata_image.set_pixel(0, 1, Color(1.0, 0.0, 0.0, 0.0)) DrawingAlgos.set_layer_metadata_image(top_layer, top_cel, metadata_image, 1) var texture_array := Texture2DArray.new() texture_array.create_from_images(textures)