mirror of
https://github.com/3b1b/manim.git
synced 2025-08-21 05:44:04 +00:00
Changed Transform.get_all_families_zipped, since when target_mobject doesn't have its data sligned, problems ensue
This commit is contained in:
parent
08fb372fb7
commit
390e774160
1 changed files with 11 additions and 1 deletions
|
@ -91,7 +91,17 @@ class Transform(Animation):
|
||||||
self.target_copy,
|
self.target_copy,
|
||||||
]
|
]
|
||||||
|
|
||||||
def interpolate_submobject(self, submob, start, target, target_copy, alpha):
|
def get_all_families_zipped(self):
|
||||||
|
return zip(*[
|
||||||
|
mob.family_members_with_points()
|
||||||
|
for mob in [
|
||||||
|
self.mobject,
|
||||||
|
self.starting_mobject,
|
||||||
|
self.target_copy,
|
||||||
|
]
|
||||||
|
])
|
||||||
|
|
||||||
|
def interpolate_submobject(self, submob, start, target_copy, alpha):
|
||||||
submob.interpolate(
|
submob.interpolate(
|
||||||
start, target_copy,
|
start, target_copy,
|
||||||
alpha, self.path_func
|
alpha, self.path_func
|
||||||
|
|
Loading…
Add table
Reference in a new issue