Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Add a feature #650

xy-2382a1b05f28fe
diff --git a/manimlib/extract_scene.py b/manimlib/extract_scene.py
index ed486152e..7185f6eb5 100644
--- a/manimlib/extract_scene.py
+++ b/manimlib/extract_scene.py
@@ -116,7 +116,7 @@ def get_scenes_to_render(scene_classes, config):
)
if result:
return result
- return prompt_user_for_choice(scene_classes)
+ return [scene_classes[0]] if len(scene_classes) == 1 else prompt_user_for_choice(scene_classes)
def get_scene_classes_from_module(module):