Ensure joint_products are refreshed for _AnimationBuilder

This commit is contained in:
Grant Sanderson 2023-02-09 15:16:10 -08:00
parent 3e3e4de5e9
commit b39fbb62f4
2 changed files with 3 additions and 1 deletions

View file

@ -63,7 +63,7 @@ class Transform(Animation):
# preserved, since calling align_data will potentially
# change the structure of both arguments
self.target_copy = self.target_mobject.copy()
self.mobject.align_data_and_family(self.target_copy)
self.mobject.align_data_and_family(self.target_copy)
super().begin()
if not self.mobject.has_updaters:
self.mobject.lock_matching_data(

View file

@ -899,6 +899,8 @@ class VMobject(Mobject):
self.has_same_shape_as(vmobject)
if match_tris:
vmobject.triangulation = self.triangulation
for mob in [self, vmobject]:
mob.get_joint_products()
return self
for mob in self, vmobject: