Skip to content

Commit 8c9ae5b

Browse files
k4pranAathish04
andauthored
Fixed -a flag for opengl (#2011)
* Fix -a flag for opengl * Rename status to rerun for clarity Co-authored-by: Aathish Sivasubrahmanian <aathish04@gmail.com>
1 parent e22d435 commit 8c9ae5b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

manim/cli/render/commands.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,16 @@ def __repr__(self):
105105
while keep_running:
106106
for SceneClass in scene_classes_from_file(file):
107107
scene = SceneClass(renderer)
108-
status = scene.render()
109-
if status:
108+
rerun = scene.render()
109+
if rerun or config["write_all"]:
110+
renderer.num_plays = 0
110111
continue
111112
else:
112113
keep_running = False
113114
break
115+
if config["write_all"]:
116+
keep_running = False
117+
114118
except Exception:
115119
error_console.print_exception()
116120
sys.exit(1)

0 commit comments

Comments
 (0)