diff --git a/animation/transform.py b/animation/transform.py index b6635c51..dff9bf8a 100644 --- a/animation/transform.py +++ b/animation/transform.py @@ -79,6 +79,13 @@ class ReplacementTransform(Transform): } +class TransformFromCopy(ReplacementTransform): + def __init__(self, mobject, target_mobject, **kwargs): + ReplacementTransform.__init__( + self, mobject.deepcopy(), target_mobject, **kwargs + ) + + class ClockwiseTransform(Transform): CONFIG = { "path_arc": -np.pi