From b954b2ef5bccbb2a2aebdc9129e9963f20d255ee Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Wed, 13 Jun 2018 17:11:31 -0700 Subject: [PATCH] Added include_sign to ChangingDecimal config --- animation/numbers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/animation/numbers.py b/animation/numbers.py index 428203f3..569ed46b 100644 --- a/animation/numbers.py +++ b/animation/numbers.py @@ -13,6 +13,7 @@ class ChangingDecimal(Animation): "num_decimal_places": None, "show_ellipsis": None, "position_update_func": None, + "include_sign": None, "tracked_mobject": None, } @@ -21,7 +22,7 @@ class ChangingDecimal(Animation): self.decimal_number_config = dict( decimal_number_mobject.initial_config ) - for attr in "num_decimal_places", "show_ellipsis": + for attr in "num_decimal_places", "show_ellipsis", "include_sign": value = getattr(self, attr) if value is not None: self.decimal_number_config[attr] = value