Refactor logic to use set

This commit is contained in:
Petr Kalis 2024-12-05 17:19:19 +01:00
parent 81c71a757f
commit c886be22bd

View file

@ -533,10 +533,7 @@ def _get_real_files_to_render(collection, frames_to_render):
return [
file_name
for file_name in file_names
if any(
f"{head_name}{frame}{collection.tail}" == file_name
for frame in normalized_frames_to_render
)
if file_name in normalized_filenames
]