From 6ea04abfc263900618976a49d5e5d17240193c26 Mon Sep 17 00:00:00 2001 From: David Cattermole Date: Fri, 27 Oct 2023 23:23:21 +1100 Subject: [PATCH] Fix 'mmSolver.utils.time.get_frame_range()' function The wrong frame range will be returned given the frame_range_mode. --- python/mmSolver/utils/time.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/mmSolver/utils/time.py b/python/mmSolver/utils/time.py index 6a13ce7d..b37f9964 100644 --- a/python/mmSolver/utils/time.py +++ b/python/mmSolver/utils/time.py @@ -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