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

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

This commit is contained in:
Emmanouil Papadeas 2024-03-31 00:55:55 +02:00
parent 11a1428eef
commit 1cb4d22233

View file

@ -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()