mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Make sure VMobject.reverse_points works with new path convention
This commit is contained in:
parent
ae99c8cd2e
commit
cbfe82579f
1 changed files with 6 additions and 0 deletions
|
@ -1122,6 +1122,12 @@ class VMobject(Mobject):
|
|||
|
||||
@triggers_refreshed_triangulation
|
||||
def reverse_points(self):
|
||||
# This will reset which anchors are
|
||||
# considered path ends
|
||||
if not self.has_points():
|
||||
return self
|
||||
inner_ends = self.get_subpath_end_indices()[:-1]
|
||||
self.data["points"][inner_ends + 1] = self.data["points"][inner_ends + 2]
|
||||
super().reverse_points()
|
||||
return self
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue