mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 10:57:44 +00:00
Don't embed when writing to file with no preview
This commit is contained in:
parent
8485ff8c76
commit
60b1e284f3
1 changed files with 4 additions and 0 deletions
|
|
@ -106,6 +106,10 @@ class Scene(Container):
|
|||
self.window.destroy()
|
||||
|
||||
def embed(self):
|
||||
if not self.preview:
|
||||
# If the scene is just being
|
||||
# written, ignore embed calls
|
||||
return
|
||||
self.stop_skipping()
|
||||
self.linger_after_completion = False
|
||||
self.update_frame()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue