mirror of
https://github.com/3b1b/manim.git
synced 2025-08-21 05:44:04 +00:00
Fix Arrow
This commit is contained in:
parent
a17a57825e
commit
31715ec98a
1 changed files with 4 additions and 3 deletions
|
@ -836,7 +836,7 @@ class FillArrow(Line):
|
|||
self.add_line_to(tip_width * DOWN / 2)
|
||||
self.add_line_to(points2[0])
|
||||
# Close it out
|
||||
self.append_points(points2)
|
||||
self.add_subpath(points2)
|
||||
self.add_line_to(points1[0])
|
||||
|
||||
if length > 0 and self.get_length() > 0:
|
||||
|
@ -849,11 +849,12 @@ class FillArrow(Line):
|
|||
axis=rotate_vector(self.get_unit_vector(), -PI / 2),
|
||||
)
|
||||
self.shift(start - self.get_start())
|
||||
self.refresh_triangulation()
|
||||
|
||||
def reset_points_around_ends(self):
|
||||
self.set_points_by_ends(
|
||||
self.get_start().copy(), self.get_end().copy(), path_arc=self.path_arc
|
||||
self.get_start().copy(),
|
||||
self.get_end().copy(),
|
||||
path_arc=self.path_arc
|
||||
)
|
||||
return self
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue