Ensure joint_products are computed at both the start and end of an animation

This commit is contained in:
Grant Sanderson 2023-02-02 18:17:12 -08:00
parent 009f9dd18b
commit 4629e08769

View file

@ -1262,11 +1262,10 @@ class VMobject(Mobject):
def set_animating_status(self, is_animating: bool, recurse: bool = True):
super().set_animating_status(is_animating, recurse)
if is_animating:
for submob in self.get_family(recurse):
submob.get_joint_products(refresh=True)
if not submob._use_winding_fill:
submob.get_triangulation()
for submob in self.get_family(recurse):
submob.get_joint_products(refresh=True)
if not submob._use_winding_fill:
submob.get_triangulation()
return self
# For shaders