A community-maintained Python framework for creating mathematical animations.
Fixed ChangingDecimal bug based on new scene+mobject structure
Grant Sanderson543d8cb92d42
diff --git a/topics/numerals.py b/topics/numerals.pyindex a7714ba89..fefd44cad 100644--- a/topics/numerals.py+++ b/topics/numerals.py@@ -85,14 +85,9 @@ class ChangingDecimal(Animation):)new_decimal.replace(decimal, dim_to_match = 1)new_decimal.highlight(decimal.get_color())- decimal.align_data(new_decimal)- families = [- mob.family_members_with_points()- for mob in decimal, new_decimal- ]- for sm1, sm2 in zip(*families):- sm1.interpolate(sm1, sm2, 1)- self.mobject.number = new_number++ decimal.submobjects = new_decimal.submobjects+ decimal.number = new_numberdef update_position(self):if self.position_update_func is not None: