Skip to content

Commit 7af7998

Browse files
committed
Move Scene.show_frame()
1 parent 304fd4d commit 7af7998

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

manim/renderer/cairo_renderer.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,11 @@ def update_skipping_status(self):
9595
if self.scene.num_plays > file_writer_config["upto_animation_number"]:
9696
file_writer_config["skip_animations"] = True
9797
raise EndSceneEarlyException()
98+
99+
def show_frame(self):
100+
"""
101+
Opens the current frame in the Default Image Viewer
102+
of your system.
103+
"""
104+
self.update_frame(ignore_skipping=True)
105+
self.camera.get_image().show()

manim/scene/scene.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,11 +1008,3 @@ def add_sound(self, sound_file, time_offset=0, gain=None, **kwargs):
10081008
return
10091009
time = self.time + time_offset
10101010
self.file_writer.add_sound(sound_file, time, gain, **kwargs)
1011-
1012-
def show_frame(self):
1013-
"""
1014-
Opens the current frame in the Default Image Viewer
1015-
of your system.
1016-
"""
1017-
self.renderer.update_frame(ignore_skipping=True)
1018-
self.camera.get_image().show()

0 commit comments

Comments
 (0)