mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Ensure joint_products are refreshed for _AnimationBuilder
This commit is contained in:
parent
3e3e4de5e9
commit
b39fbb62f4
2 changed files with 3 additions and 1 deletions
|
@ -63,7 +63,7 @@ class Transform(Animation):
|
||||||
# preserved, since calling align_data will potentially
|
# preserved, since calling align_data will potentially
|
||||||
# change the structure of both arguments
|
# change the structure of both arguments
|
||||||
self.target_copy = self.target_mobject.copy()
|
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()
|
super().begin()
|
||||||
if not self.mobject.has_updaters:
|
if not self.mobject.has_updaters:
|
||||||
self.mobject.lock_matching_data(
|
self.mobject.lock_matching_data(
|
||||||
|
|
|
@ -899,6 +899,8 @@ class VMobject(Mobject):
|
||||||
self.has_same_shape_as(vmobject)
|
self.has_same_shape_as(vmobject)
|
||||||
if match_tris:
|
if match_tris:
|
||||||
vmobject.triangulation = self.triangulation
|
vmobject.triangulation = self.triangulation
|
||||||
|
for mob in [self, vmobject]:
|
||||||
|
mob.get_joint_products()
|
||||||
return self
|
return self
|
||||||
|
|
||||||
for mob in self, vmobject:
|
for mob in self, vmobject:
|
||||||
|
|
Loading…
Add table
Reference in a new issue