mirror of
https://github.com/3b1b/manim.git
synced 2025-08-01 17:29:06 +08:00
Call continual_update at the start of a wait call, even if there are no time-dependent mobjects
This commit is contained in:
@ -528,6 +528,7 @@ class Scene(Container):
|
|||||||
@handle_play_like_call
|
@handle_play_like_call
|
||||||
def wait(self, duration=DEFAULT_WAIT_TIME, stop_condition=None):
|
def wait(self, duration=DEFAULT_WAIT_TIME, stop_condition=None):
|
||||||
dt = 1 / self.camera.frame_rate
|
dt = 1 / self.camera.frame_rate
|
||||||
|
self.continual_update(dt=0) # Any problems with this?
|
||||||
if self.should_continually_update():
|
if self.should_continually_update():
|
||||||
time_progression = self.get_wait_time_progression(duration, stop_condition)
|
time_progression = self.get_wait_time_progression(duration, stop_condition)
|
||||||
for t in time_progression:
|
for t in time_progression:
|
||||||
|
Reference in New Issue
Block a user