Skip to content

Commit 246c4ce

Browse files
committed
Add _original__init__ in Animation to avoid Error when using .set_default()
1 parent ad71d54 commit 246c4ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

manim/animation/animation.py

+2
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,8 @@ def __init_subclass__(cls, **kwargs) -> None:
497497

498498
cls._original__init__ = cls.__init__
499499

500+
_original__init__ = __init__ # needed if set_default() is called with no kwargs directly from Animation
501+
500502
@classmethod
501503
def set_default(cls, **kwargs) -> None:
502504
"""Sets the default values of keyword arguments.

0 commit comments

Comments
 (0)