mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Don't necessarily use VGroup with FadeTransform
This commit is contained in:
parent
346d252451
commit
0e2d21bed3
1 changed files with 1 additions and 5 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue