mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Don't update frame during window closing on cell execution
This commit is contained in:
parent
2e26d66454
commit
5f56778cdf
1 changed files with 2 additions and 1 deletions
|
@ -239,7 +239,8 @@ class Scene(object):
|
|||
# Operation to run after each ipython command
|
||||
def post_cell_func():
|
||||
self.refresh_static_mobjects()
|
||||
self.update_frame(dt=0, ignore_skipping=True)
|
||||
if not self.is_window_closing():
|
||||
self.update_frame(dt=0, ignore_skipping=True)
|
||||
self.save_state()
|
||||
|
||||
shell.events.register("post_run_cell", post_cell_func)
|
||||
|
|
Loading…
Add table
Reference in a new issue