Skip to content

Commit

Permalink
Small tweaks to arrow tip implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
3b1b committed Sep 5, 2023
1 parent 39e5d24 commit a8b1791
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion manimlib/mobject/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
from manimlib.mobject.types.vectorized_mobject import DashedVMobject
from manimlib.mobject.types.vectorized_mobject import VGroup
from manimlib.mobject.types.vectorized_mobject import VMobject
from manimlib.utils.bezier import bezier
from manimlib.utils.bezier import quadratic_bezier_points_for_arc
from manimlib.utils.bezier import partial_quadratic_bezier_points
from manimlib.utils.iterables import adjacent_n_tuples
from manimlib.utils.iterables import adjacent_pairs
from manimlib.utils.simple_functions import clip
Expand Down Expand Up @@ -684,7 +686,7 @@ def insert_tip_anchor(self) -> Self:
if self.path_arc > 0 and self.buff > 0:
self.insert_n_curves(10) # Is this needed?
self.pointwise_become_partial(self, 0.0, 1.0 - alpha)
self.append_points([self.get_end(), self.get_end()])
self.add_line_to(self.get_end())
self.add_line_to(prev_end)
self.n_tip_points = 3
return self
Expand Down

0 comments on commit a8b1791

Please sign in to comment.