mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Have SVG subdivide intersections if winding fill is not a default
This commit is contained in:
parent
594b9258da
commit
0cf9a35367
1 changed files with 2 additions and 0 deletions
|
@ -309,6 +309,8 @@ class VMobjectFromSVGPath(VMobject):
|
||||||
path_string = self.path_obj.d()
|
path_string = self.path_obj.d()
|
||||||
if path_string not in PATH_TO_POINTS:
|
if path_string not in PATH_TO_POINTS:
|
||||||
self.handle_commands()
|
self.handle_commands()
|
||||||
|
if not self._use_winding_fill:
|
||||||
|
self.subdivide_intersections()
|
||||||
# Save for future use
|
# Save for future use
|
||||||
PATH_TO_POINTS[path_string] = self.get_points().copy()
|
PATH_TO_POINTS[path_string] = self.get_points().copy()
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue