From 257b8d4aa67db5615a021659e087ab416c5df6b2 Mon Sep 17 00:00:00 2001 From: Manolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Thu, 19 Nov 2020 02:01:43 +0200 Subject: [PATCH] Onion skinned previous and next frames are now being drawn on top of the current frame --- CHANGELOG.md | 1 + src/UI/Canvas/Canvas.gd | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cdb773328..9faf44761 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ PinyaColada, RĂ©mi Verschelde (akien-mga), dasimonde, gschwind, AbhinavKDev - The default path of the dialogs for opening and saving is now the user's desktop folder. - When there are errors in opening and saving files, the errors appear in the form of a popup dialog, instead of a notification or an OS alert. - The CJK font (for Chinese & Korean) was changed to DroidSansFallback from NotoSansCJKtc. This results in a much smaller exported `.pck` (over 10MB less) +- Onion skinned previous and next frames are now being drawn on top of the current frame. This fixes issues where onion skinning would not work with an opaque background. - In onion skinning, you can now set the past and future steps to 0. ([#380](https://github.com/Orama-Interactive/Pixelorama/pull/380)) ### Fixed diff --git a/src/UI/Canvas/Canvas.gd b/src/UI/Canvas/Canvas.gd index 1ceebbaed..35a5ad558 100644 --- a/src/UI/Canvas/Canvas.gd +++ b/src/UI/Canvas/Canvas.gd @@ -27,8 +27,6 @@ func _draw() -> void: Global.small_preview_viewport.get_child(0).get_node("CanvasPreview").update() var current_cels : Array = Global.current_project.frames[Global.current_project.current_frame].cels - if Global.onion_skinning: - onion_skinning() # Draw current frame layers for i in range(Global.current_project.layers.size()): @@ -36,6 +34,8 @@ func _draw() -> void: if Global.current_project.layers[i].visible: # if it's visible draw_texture(current_cels[i].image_texture, location, modulate_color) + if Global.onion_skinning: + onion_skinning() tile_mode.update()