Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Changed Transform.get_all_families_zipped, since when target_mobject doesn't have its data sligned, problems ensue

Grant Sanderson390e7741602f
diff --git a/manimlib/animation/transform.py b/manimlib/animation/transform.py
index 473830dd6..32c54506b 100644
--- a/manimlib/animation/transform.py
+++ b/manimlib/animation/transform.py
@@ -91,7 +91,17 @@ class Transform(Animation):
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(
start, target_copy,
alpha, self.path_func