mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 22:47:45 +00:00
Be sure to align data in FadeTransform
This commit is contained in:
parent
7f203d1611
commit
453b863738
1 changed files with 1 additions and 0 deletions
|
|
@ -113,6 +113,7 @@ class FadeTransform(Transform):
|
|||
start, end = self.starting_mobject, self.ending_mobject
|
||||
for m0, m1 in ((start[1], start[0]), (end[0], end[1])):
|
||||
self.ghost_to(m0, m1)
|
||||
self.ending_mobject.align_data(self.mobject)
|
||||
|
||||
def ghost_to(self, source: Mobject, target: Mobject) -> None:
|
||||
source.replace(target, stretch=self.stretch, dim_to_match=self.dim_to_match)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue