Don't update frame during window closing on cell execution

This commit is contained in:
Grant Sanderson 2022-05-14 17:28:11 -07:00
parent 2e26d66454
commit 5f56778cdf

View file

@ -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)