From 1cb4d2223355ea43b9ac03a79499d756375d9d07 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Sun, 31 Mar 2024 00:55:55 +0200 Subject: [PATCH] Fix the same frames being exported multiple times when "Selected frames" is selected, and multiple cels of the same frames are currently selected on the timeline - Fixes #1001 --- src/Autoload/Export.gd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Autoload/Export.gd b/src/Autoload/Export.gd index 7934a175b..43081b652 100644 --- a/src/Autoload/Export.gd +++ b/src/Autoload/Export.gd @@ -262,7 +262,9 @@ func _calculate_frames(project := Global.current_project) -> Array[Frame]: frames = project.frames.slice(frame_start - 1, frame_end, 1, true) elif frame_current_tag == 1: # Selected frames for cel in project.selected_cels: - frames.append(project.frames[cel[0]]) + var frame := project.frames[cel[0]] + if not frames.has(frame): + frames.append(frame) else: # All frames frames = project.frames.duplicate()