Account for unnecessary calls to use_winding_fill

This commit is contained in:
Grant Sanderson 2023-02-02 10:39:30 -08:00
parent 260815c675
commit 594b9258da

View file

@ -867,7 +867,9 @@ class VMobject(Mobject):
# Alignment # Alignment
def align_points(self, vmobject: VMobject) -> Self: def align_points(self, vmobject: VMobject) -> Self:
winding = self._use_winding_fill and vmobject._use_winding_fill winding = self._use_winding_fill and vmobject._use_winding_fill
if winding != self._use_winding_fill:
self.use_winding_fill(winding) self.use_winding_fill(winding)
if winding != vmobject._use_winding_fill:
vmobject.use_winding_fill(winding) vmobject.use_winding_fill(winding)
if self.get_num_points() == len(vmobject.get_points()): if self.get_num_points() == len(vmobject.get_points()):
# If both have fill, and they have the same shape, just # If both have fill, and they have the same shape, just