Skip to content

Commit

Permalink
Ensure joint_products are computed at both the start and end of an an…
Browse files Browse the repository at this point in the history
…imation
  • Loading branch information
3b1b committed Feb 3, 2023
1 parent 009f9dd commit 4629e08
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions manimlib/mobject/types/vectorized_mobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -1262,11 +1262,10 @@ def apply_points_function(self, *args, **kwargs) -> Self:

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
Expand Down

0 comments on commit 4629e08

Please sign in to comment.