Render Review: Fix Import Errors #122
@ -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()))
|
||||
|
Loading…
Reference in New Issue
Block a user