Skip to content

Commit f22a341

Browse files
committed
Save state before each embed
1 parent 2d115a2 commit f22a341

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

manimlib/scene/scene.py

+3
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ def embed(self):
119119
self.linger_after_completion = False
120120
self.update_frame()
121121

122+
# Save scene state at the point of embedding
123+
self.save_state()
124+
122125
from IPython.terminal.embed import InteractiveShellEmbed
123126
shell = InteractiveShellEmbed()
124127
# Have the frame update after each command

0 commit comments

Comments
 (0)