mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 22:47:45 +00:00
Fixed small bug in Arc, where end and start were swapped in adding tips
This commit is contained in:
parent
f7f359ffaf
commit
9927f22645
1 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ class Arc(VMobject):
|
|||
#TODO, do this a better way
|
||||
p1 = p2 = p3 = p4 = None
|
||||
start_arrow = end_arrow = None
|
||||
if at_start:
|
||||
if at_end:
|
||||
p1, p2 = self.points[-3:-1]
|
||||
# self.points[-2:] did overshoot
|
||||
start_arrow = Arrow(
|
||||
|
|
@ -55,7 +55,7 @@ class Arc(VMobject):
|
|||
)
|
||||
self.add(start_arrow.split()[-1]) # just the tip
|
||||
|
||||
if at_end:
|
||||
if at_start:
|
||||
p4, p3 = self.points[1:3]
|
||||
# self.points[:2] did overshoot
|
||||
end_arrow = Arrow(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue