mirror of
https://github.com/3b1b/manim.git
synced 2025-07-29 21:12:35 +08:00
Make sure VMobject.reverse_points works with new path convention
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user