1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 09:09:47 +00:00

Don't export the first frame twice when using ping pong loop

This commit is contained in:
Emmanouil Papadeas 2024-12-08 15:40:03 +02:00
parent 9c628c403b
commit 0d2b579afe

View file

@ -325,6 +325,8 @@ func _calculate_frames(project := Global.current_project) -> Array[Frame]:
var inverted_frames := frames.duplicate() var inverted_frames := frames.duplicate()
inverted_frames.reverse() inverted_frames.reverse()
inverted_frames.remove_at(0) inverted_frames.remove_at(0)
if inverted_frames.size() > 0:
inverted_frames.remove_at(inverted_frames.size() - 1)
frames.append_array(inverted_frames) frames.append_array(inverted_frames)
return frames return frames