mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 21:44:19 +08:00
Better space-filling curve infrastructure
This commit is contained in:
@ -55,6 +55,14 @@ def instantiate(obj):
|
||||
"""
|
||||
return obj() if isinstance(obj, type) else obj
|
||||
|
||||
def get_all_descendent_classes(Class):
|
||||
awaiting_review = [Class]
|
||||
result = []
|
||||
while awaiting_review:
|
||||
Child = awaiting_review.pop()
|
||||
awaiting_review += Child.__subclasses__()
|
||||
result.append(Child)
|
||||
return result
|
||||
|
||||
def filtered_locals(local_args):
|
||||
result = local_args.copy()
|
||||
|
Reference in New Issue
Block a user