Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Small fix to AnimationOnSurroundingRectangle

Grant Sanderson5e06869caffd
diff --git a/animation/indication.py b/animation/indication.py
index 3e77365d5..a97e5f135 100644
--- a/animation/indication.py
+++ b/animation/indication.py
@@ -115,6 +115,8 @@ class AnimationOnSurroundingRectangle(AnimationGroup):
rect = SurroundingRectangle(
mobject, **self.surrounding_rectangle_config
)
+ if "surrounding_rectangle_config" in kwargs:
+ kwargs.pop("surrounding_rectangle_config")
AnimationGroup.__init__(self, self.rect_to_animation(rect, **kwargs))