mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
End scenes after embed
This commit is contained in:
parent
0b8cb3b6e1
commit
2d0257562f
1 changed files with 2 additions and 0 deletions
|
@ -120,6 +120,8 @@ class Scene(Container):
|
||||||
# Stack depth of 2 means the shell will use
|
# Stack depth of 2 means the shell will use
|
||||||
# the namespace of the caller, not this method
|
# the namespace of the caller, not this method
|
||||||
shell(stack_depth=2)
|
shell(stack_depth=2)
|
||||||
|
# End scene when exiting an embed.
|
||||||
|
raise EndSceneEarlyException()
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.__class__.__name__
|
return self.__class__.__name__
|
||||||
|
|
Loading…
Add table
Reference in a new issue