From 9a13ee30fecfc0fa9c4a34358773f4e5d48a3d0c Mon Sep 17 00:00:00 2001 From: wijnand Date: Fri, 6 Jul 2018 15:56:08 +0200 Subject: [PATCH] simplified comparison --- colorbleed/maya/lib.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/colorbleed/maya/lib.py b/colorbleed/maya/lib.py index 7fd69f884d..0f7e842e3e 100644 --- a/colorbleed/maya/lib.py +++ b/colorbleed/maya/lib.py @@ -1356,17 +1356,7 @@ def validate_fps(): fps = lib.get_project_fps() # can be int or float current_fps = mel.eval('currentTimeUnitToFPS()') # returns float - # Check if FPS is supported in Maya and compare with current fps - if isinstance(fps, int) and fps in INT_FPS: - valid = int(current_fps) == fps - - elif isinstance(fps, float) and fps in FLOAT_FPS: - valid = current_fps == fps - - else: - valid = False - - if not valid: + if current_fps != fps: from avalon.vendor.Qt import QtWidgets from ..widgets import popup