Skip to content
Snippets Groups Projects
Commit 76ec1eb1 authored by Sybren A. Stüvel's avatar Sybren A. Stüvel
Browse files

BVH Import: fix scene FPS adjustment

The `scene.render.fps` setting must be an integer nowadays. Instead of
storing a `float` there, the rounded FPS is stored as integer, and the
`fps_base` property is used to scale this to the desired frame rate.
parent 7e2fa377
No related branches found
No related tags found
No related merge requests found
......@@ -742,8 +742,8 @@ def _update_scene_fps(context, report, bvh_frame_time):
if scene.render.fps != new_fps or scene.render.fps_base != 1.0:
print("\tupdating scene FPS (was %f) to BVH FPS (%f)" % (scene_fps, new_fps))
scene.render.fps = new_fps
scene.render.fps_base = 1.0
scene.render.fps = int(round(new_fps))
scene.render.fps_base = scene.render.fps / new_fps
def _update_scene_duration(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment