Vector.scale was broken for vectors with length 0

This commit is contained in:
Grant Sanderson 2019-03-24 11:33:04 -07:00
parent fbcc3b85d3
commit 22f8e24d41

View file

@ -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: