mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
code tweaks - big roy's comment
This commit is contained in:
parent
d7aa02c3e6
commit
253ae11736
1 changed files with 3 additions and 2 deletions
|
|
@ -616,8 +616,9 @@ def scene_fps(fps):
|
|||
Args:
|
||||
fps (float): fps value
|
||||
"""
|
||||
fps_before = rt.frameRate
|
||||
try:
|
||||
rt.frameRate = float(get_fps_for_current_context())
|
||||
rt.frameRate = float(fps)
|
||||
yield
|
||||
finally:
|
||||
rt.frameRate = fps
|
||||
rt.frameRate = fps_before
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue