mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 13:34:19 +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
|
@triggers_refreshed_triangulation
|
||||||
def reverse_points(self):
|
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()
|
super().reverse_points()
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user