mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
simplified comparison
This commit is contained in:
parent
3703cc5983
commit
9a13ee30fe
1 changed files with 1 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue