A community-maintained Python framework for creating mathematical animations.
Vector.scale was broken for vectors with length 0
Grant Sanderson22f8e24d4121
diff --git a/manimlib/mobject/geometry.py b/manimlib/mobject/geometry.pyindex 643664228..db594e87d 100644--- a/manimlib/mobject/geometry.py+++ b/manimlib/mobject/geometry.py@@ -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: