mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Ensure error-flash rect is fixed in frame
This commit is contained in:
parent
8e3378f798
commit
7dde368eeb
1 changed files with 3 additions and 4 deletions
|
@ -261,10 +261,9 @@ class Scene(object):
|
||||||
shell.showtraceback((etype, evalue, tb), tb_offset=tb_offset)
|
shell.showtraceback((etype, evalue, tb), tb_offset=tb_offset)
|
||||||
if self.embed_error_sound:
|
if self.embed_error_sound:
|
||||||
os.system("printf '\a'")
|
os.system("printf '\a'")
|
||||||
self.play(VFadeInThenOut(
|
rect = FullScreenRectangle().set_stroke(RED, 30).set_fill(opacity=0)
|
||||||
FullScreenRectangle().set_stroke(RED, 30).set_fill(opacity=0),
|
rect.fix_in_frame()
|
||||||
run_time=0.5,
|
self.play(VFadeInThenOut(rect, run_time=0.5))
|
||||||
))
|
|
||||||
|
|
||||||
shell.set_custom_exc((Exception,), custom_exc)
|
shell.set_custom_exc((Exception,), custom_exc)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue