Skip to content

Commit 654f32c

Browse files
committed
Allow passing an iterable of mobjects to add() without unpacking
1 parent ebb3300 commit 654f32c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

manim/scene/scene.py

+3
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,9 @@ def add(self, *mobjects: Mobject):
464464
The same scene after adding the Mobjects in.
465465
466466
"""
467+
# Allows passing an iterable of mobjects without unpacking it first
468+
mobjects = flatten_iterable_parameters(mobjects)
469+
467470
if config.renderer == RendererType.OPENGL:
468471
new_mobjects = []
469472
new_meshes = []

0 commit comments

Comments
 (0)