Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Remove extract_scene use of an All_SCENES list

Grant Sanderson4fa782b8b5f1
diff --git a/manimlib/extract_scene.py b/manimlib/extract_scene.py
index 143e338cc..0cf783638 100644
--- a/manimlib/extract_scene.py
+++ b/manimlib/extract_scene.py
@@ -64,8 +64,6 @@ def is_child_scene(obj, module):
return False
if obj == Scene:
return False
- if not obj.__module__.startswith(module.__name__):
- return False
return True
@@ -120,16 +118,13 @@ def get_scenes_to_render(scene_classes, config):
def get_scene_classes_from_module(module):
- if hasattr(module, "ALL_SCENE_CLASSES"):
- return module.ALL_SCENE_CLASSES
- else:
- return [
- member[1]
- for member in inspect.getmembers(
- module,
- lambda x: is_child_scene(x, module)
- )
- ]
+ return [
+ member[1]
+ for member in inspect.getmembers(
+ module,
+ lambda x: is_child_scene(x, module)
+ )
+ ]
def main(config):