mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Buf fix with Arrow
This commit is contained in:
parent
38b305bb19
commit
b40a3b5710
1 changed files with 5 additions and 2 deletions
|
@ -632,14 +632,17 @@ class Arrow(Line):
|
||||||
self.add_line_to(points1[0])
|
self.add_line_to(points1[0])
|
||||||
|
|
||||||
if length > 0:
|
if length > 0:
|
||||||
self.scale(length / self.get_length()) # Final correction
|
# Final correction
|
||||||
|
super().scale(length / self.get_length())
|
||||||
|
|
||||||
self.rotate(angle_of_vector(vect) - self.get_angle())
|
self.rotate(angle_of_vector(vect) - self.get_angle())
|
||||||
self.shift(start - self.get_start())
|
self.shift(start - self.get_start())
|
||||||
self.refresh_triangulation()
|
self.refresh_triangulation()
|
||||||
|
|
||||||
def reset_points_around_ends(self):
|
def reset_points_around_ends(self):
|
||||||
self.set_points_by_ends(self.get_start(), self.get_end(), path_arc=self.path_arc)
|
self.set_points_by_ends(
|
||||||
|
self.get_start(), self.get_end(), path_arc=self.path_arc
|
||||||
|
)
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def get_start(self):
|
def get_start(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue