mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Account for unnecessary calls to use_winding_fill
This commit is contained in:
parent
47672d3b1e
commit
9c03a40d68
1 changed files with 4 additions and 2 deletions
|
@ -867,8 +867,10 @@ class VMobject(Mobject):
|
|||
# Alignment
|
||||
def align_points(self, vmobject: VMobject) -> Self:
|
||||
winding = self._use_winding_fill and vmobject._use_winding_fill
|
||||
self.use_winding_fill(winding)
|
||||
vmobject.use_winding_fill(winding)
|
||||
if winding != self._use_winding_fill:
|
||||
self.use_winding_fill(winding)
|
||||
if winding != vmobject._use_winding_fill:
|
||||
vmobject.use_winding_fill(winding)
|
||||
if self.get_num_points() == len(vmobject.get_points()):
|
||||
# If both have fill, and they have the same shape, just
|
||||
# give them the same triangulation so that it's not recalculated
|
||||
|
|
Loading…
Add table
Reference in a new issue