Render Review: Fix Import Errors #122

Merged
Nick Alberelli merged 4 commits from :fix/render-review-import-errors into main 2023-07-13 19:44:15 +02:00
Showing only changes of commit 5bd9d09c0b - Show all commits

View File

@ -237,9 +237,11 @@ class RR_OT_sqe_create_review_session(bpy.types.Operator):
# Sort versions by date
for shot_name, shot_folder in shot_version_folders_dict.items():
shot_version_folders_dict[shot_name] = sorted(shot_folder, key=lambda dir: dir.stat().st_mtime)
shot_version_folders_dict[shot_name] = sorted(shot_folder, reverse=False)
# Limit list to max number of versions
shot_version_folders_dict[shot_name] = shot_version_folders_dict[shot_name][:max_versions_per_shot]
shot_version_folders_dict[shot_name] = shot_version_folders_dict[shot_name][
-max_versions_per_shot:
]
# Sort shots by name
sorted_dict = OrderedDict(sorted(shot_version_folders_dict.items()))