mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Vector.scale was broken for vectors with length 0
This commit is contained in:
parent
fbcc3b85d3
commit
22f8e24d41
1 changed files with 3 additions and 0 deletions
|
@ -557,6 +557,9 @@ class Arrow(Line):
|
|||
self.set_stroke_width_from_length()
|
||||
|
||||
def scale(self, factor, **kwargs):
|
||||
if self.get_length() == 0:
|
||||
return self
|
||||
|
||||
has_tip = self.has_tip()
|
||||
has_start_tip = self.has_start_tip()
|
||||
if has_tip or has_start_tip:
|
||||
|
|
Loading…
Add table
Reference in a new issue