big roy's comments on the line 582-583

This commit is contained in:
Kayla Man 2023-09-05 18:43:30 +08:00
parent 44391391df
commit 60e5eb74ae

View file

@ -579,11 +579,8 @@ def _create_instances_for_aov(instance, skeleton, aov_filter, additional_data,
group_name = subset
# if there are multiple cameras, we need to add camera name
if isinstance(col, (list, tuple)):
cam = next((c for c in cameras if c in col[0]), None)
else:
# in case of single frame
cam = next((cam for cam in cameras if cam in col), None)
expected_filepath = col[0] if isinstance(col, (list, tuple)) else col
cam = next((cam for cam in cameras if cam in expected_filepath), None)
if cam:
if aov:
# if there is duplicatd camera name found in aov,