mirror of
https://github.com/3b1b/manim.git
synced 2025-08-29 20:42:02 +00:00
Fixed ChangingDecimal bug based on new scene+mobject structure
This commit is contained in:
parent
024a9dd3d4
commit
543d8cb92d
1 changed files with 3 additions and 8 deletions
|
@ -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_number
|
||||
|
||||
def update_position(self):
|
||||
if self.position_update_func is not None:
|
||||
|
|
Loading…
Add table
Reference in a new issue