Don't necessarily use VGroup with FadeTransform

This commit is contained in:
Grant Sanderson 2023-01-24 21:46:34 -08:00
parent 346d252451
commit 0e2d21bed3

View file

@ -103,12 +103,8 @@ class FadeTransform(Transform):
self.stretch = stretch
self.dim_to_match = dim_to_match
group_type = Group
if isinstance(mobject, VMobject) and isinstance(target_mobject, VMobject):
group_type = VGroup
mobject.save_state()
super().__init__(group_type(mobject, target_mobject.copy()), **kwargs)
super().__init__(Group(mobject, target_mobject.copy()), **kwargs)
def begin(self) -> None:
self.ending_mobject = self.mobject.copy()