From 72590a8fefb6868eb55e03fbc9a3ce01f935fe2e Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Thu, 26 Jan 2023 12:04:34 -0800 Subject: [PATCH] Note that using winding fill changes data --- manimlib/mobject/types/vectorized_mobject.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manimlib/mobject/types/vectorized_mobject.py b/manimlib/mobject/types/vectorized_mobject.py index a5774b88..d597e057 100644 --- a/manimlib/mobject/types/vectorized_mobject.py +++ b/manimlib/mobject/types/vectorized_mobject.py @@ -417,6 +417,7 @@ class VMobject(Mobject): def get_joint_type(self) -> float: return self.uniforms["joint_type"] + @Mobject.affects_family_data def use_winding_fill(self, value: bool = True, recurse: bool = True): for submob in self.get_family(recurse): submob._use_winding_fill = value @@ -835,7 +836,7 @@ class VMobject(Mobject): # If both have fill, and they have the same shape, just # give them the same triangulation so that it's not recalculated # needlessly throughout an animation - if self._use_winding_fill and self.has_fill() \ + if not self._use_winding_fill and self.has_fill() \ and vmobject.has_fill() and self.has_same_shape_as(vmobject): vmobject.triangulation = self.triangulation return self