From 4629e08769a79cef9d603485059d7c1eb30f581e Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Thu, 2 Feb 2023 18:17:12 -0800 Subject: [PATCH] Ensure joint_products are computed at both the start and end of an animation --- manimlib/mobject/types/vectorized_mobject.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/manimlib/mobject/types/vectorized_mobject.py b/manimlib/mobject/types/vectorized_mobject.py index 59bf2393..8b203f0e 100644 --- a/manimlib/mobject/types/vectorized_mobject.py +++ b/manimlib/mobject/types/vectorized_mobject.py @@ -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