Skip to content

Commit

Permalink
Update client/ayon_openrv/plugins/load/openrv/load_frames.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jakub Trllo <[email protected]>
  • Loading branch information
1 parent e6f88b5 commit c9831d8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions client/ayon_openrv/plugins/load/openrv/load_frames.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,9 @@ def _get_sequence_range(self, context):
frame_start = None
frame_end = None

if version:
version_attribs = version["attrib"]
frame_start = version_attribs.get("frameStart")
frame_end = version_attribs.get("frameEnd")
version_attribs = version_entity["attrib"]
frame_start = version_attribs.get("frameStart")
frame_end = version_attribs.get("frameEnd")

# If not in version attributes, check representation attributes
if frame_start is None or frame_end is None:
Expand Down

0 comments on commit c9831d8

Please sign in to comment.