mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Update scene.py to make scene.time more accurate
When the time intervals are (0, dt, 2dt, ...), during the first frame processing, only the video is inserted, but the update parameter is 0, which causes scene.time to be inaccurate. The correct time intervals should be (dt, 2dt, ...)
This commit is contained in:
parent
9eda000a97
commit
ccb9977a67
1 changed files with 1 additions and 1 deletions
|
@ -552,7 +552,7 @@ class Scene(object):
|
||||||
if self.skip_animations and not override_skip_animations:
|
if self.skip_animations and not override_skip_animations:
|
||||||
return [run_time]
|
return [run_time]
|
||||||
|
|
||||||
times = np.arange(0, run_time, 1 / self.camera.fps)
|
times = np.arange(0, run_time, 1 / self.camera.fps) + 1 / self.camera.fps
|
||||||
|
|
||||||
self.file_writer.set_progress_display_description(sub_desc=desc)
|
self.file_writer.set_progress_display_description(sub_desc=desc)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue