mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
Fix window being internally None after hitting quit
When hitting escape, the window becomes null and calls to window.swap_buffer fail
This commit is contained in:
parent
7a634dda95
commit
ce752bf57a
1 changed files with 3 additions and 0 deletions
|
|
@ -229,6 +229,9 @@ class Manager(Generic[Scene_co]):
|
|||
if self.window is not None:
|
||||
self.window.clear()
|
||||
|
||||
if self.window.is_closing:
|
||||
raise EndSceneEarlyException()
|
||||
|
||||
self.render_state(write_to_file=write_to_file)
|
||||
|
||||
if self.window is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue