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 b6508b113c - Show all commits

View File

@ -257,12 +257,16 @@ class RR_OT_sqe_create_review_session(bpy.types.Operator):
addon_prefs = prefs.addon_prefs_get(context)
imported_strips: bpy.types.Sequence = []
for shot_folder in shot_version_folders:
if not (addon_prefs.shot_name_filter in shot_folder.parent.name):
# If there is a filter specified, and the shot doesn't match, remove it.
shot_version_folders.remove(shot_folder)
shots_folder_to_add = []
for idx, shot_folder in enumerate(shot_version_folders):
if addon_prefs.shot_name_filter == "":
shots_folder_to_add = shot_version_folders
else:
for shot_folder in shot_version_folders:
if addon_prefs.shot_name_filter in shot_folder.parent.name:
shots_folder_to_add.append(shot_folder)
for idx, shot_folder in enumerate(shots_folder_to_add):
logger.info("Processing %s", shot_folder.name)
use_video = addon_prefs.use_video and not (