mirror of
https://github.com/3b1b/manim.git
synced 2025-08-29 20:42:02 +00:00
Acutually uses Arrow.preserve_tip_size_when_scaling
This commit is contained in:
parent
687d70e9b6
commit
09df42a755
1 changed files with 13 additions and 12 deletions
|
@ -591,18 +591,19 @@ class Arrow(Line):
|
|||
self.set_stroke_width_from_length()
|
||||
|
||||
# So horribly confusing, must redo
|
||||
if has_tip:
|
||||
self.add_tip()
|
||||
old_tips[0].points[:, :] = self.tip.points
|
||||
self.remove(self.tip)
|
||||
self.tip = old_tips[0]
|
||||
self.add(self.tip)
|
||||
if has_start_tip:
|
||||
self.add_tip(at_start=True)
|
||||
old_tips[1].points[:, :] = self.start_tip.points
|
||||
self.remove(self.start_tip)
|
||||
self.start_tip = old_tips[1]
|
||||
self.add(self.start_tip)
|
||||
if self.preserve_tip_size_when_scaling:
|
||||
if has_tip:
|
||||
self.add_tip()
|
||||
old_tips[0].points[:, :] = self.tip.points
|
||||
self.remove(self.tip)
|
||||
self.tip = old_tips[0]
|
||||
self.add(self.tip)
|
||||
if has_start_tip:
|
||||
self.add_tip(at_start=True)
|
||||
old_tips[1].points[:, :] = self.start_tip.points
|
||||
self.remove(self.start_tip)
|
||||
self.start_tip = old_tips[1]
|
||||
self.add(self.start_tip)
|
||||
return self
|
||||
|
||||
def get_normal_vector(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue