mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
Don't export the first frame twice when using ping pong loop
This commit is contained in:
parent
9c628c403b
commit
0d2b579afe
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue