From 0d2b579afe8fdea23e048da1fc606ad225907b8d Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Sun, 8 Dec 2024 15:40:03 +0200 Subject: [PATCH] Don't export the first frame twice when using ping pong loop --- src/Autoload/Export.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Autoload/Export.gd b/src/Autoload/Export.gd index 221dd4959..5a55d831a 100644 --- a/src/Autoload/Export.gd +++ b/src/Autoload/Export.gd @@ -325,6 +325,8 @@ func _calculate_frames(project := Global.current_project) -> Array[Frame]: var inverted_frames := frames.duplicate() inverted_frames.reverse() inverted_frames.remove_at(0) + if inverted_frames.size() > 0: + inverted_frames.remove_at(inverted_frames.size() - 1) frames.append_array(inverted_frames) return frames