Skip to content

Commit

Permalink
Fix 'mmSolver.utils.time.get_frame_range()' function
Browse files Browse the repository at this point in the history
The wrong frame range will be returned given the frame_range_mode.
  • Loading branch information
david-cattermole committed Oct 27, 2023
1 parent 3304c27 commit 6ea04ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/mmSolver/utils/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ def get_frame_range(frame_range_mode, start_frame=None, end_frame=None):
assert frame_range_mode in const.FRAME_RANGE_MODE_VALUES

if frame_range_mode == const.FRAME_RANGE_MODE_TIMELINE_INNER_VALUE:
start_frame, end_frame = get_maya_timeline_range_outer()
elif frame_range_mode == const.FRAME_RANGE_MODE_TIMELINE_OUTER_VALUE:
start_frame, end_frame = get_maya_timeline_range_inner()
elif frame_range_mode == const.FRAME_RANGE_MODE_TIMELINE_OUTER_VALUE:
start_frame, end_frame = get_maya_timeline_range_outer()
elif frame_range_mode == const.FRAME_RANGE_MODE_CUSTOM_VALUE:
assert start_frame is not None
assert end_frame is not None
Expand Down

0 comments on commit 6ea04ab

Please sign in to comment.