Skip to content

Commit

Permalink
Fix issue when merging two layers, where if the bottom layer had laye…
Browse files Browse the repository at this point in the history
…r/cel transparency, the transparency would be applied in the content destructively
  • Loading branch information
OverloadedOrama committed Aug 16, 2024
1 parent 29f9601 commit bdef545
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/UI/Timeline/AnimationTimeline.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bdef545

Please sign in to comment.