From 6b69ed217483f23bc0a424ead1dae86f70156e0d Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Tue, 18 Feb 2020 22:32:02 -0800 Subject: [PATCH] Add a small todo --- manimlib/mobject/numbers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manimlib/mobject/numbers.py b/manimlib/mobject/numbers.py index 4c14b402..e62e0c3a 100644 --- a/manimlib/mobject/numbers.py +++ b/manimlib/mobject/numbers.py @@ -3,6 +3,7 @@ from manimlib.mobject.svg.tex_mobject import SingleStringTexMobject from manimlib.mobject.types.vectorized_mobject import VMobject +# TODO, have this cache TexMobjects class DecimalNumber(VMobject): CONFIG = { "num_decimal_places": 2, @@ -63,7 +64,7 @@ class DecimalNumber(VMobject): for i, c in enumerate(num_string): if c == "-" and len(num_string) > i + 1: self[i].align_to(self[i + 1], UP) - self[i].shift(self[i+1].get_height() * DOWN / 2) + self[i].shift(self[i + 1].get_height() * DOWN / 2) elif c == ",": self[i].shift(self[i].get_height() * DOWN / 2) if self.unit and self.unit.startswith("^"):