mirror of
https://github.com/3b1b/manim.git
synced 2025-08-31 10:48:55 +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.replace(decimal, dim_to_match = 1)
|
||||||
new_decimal.highlight(decimal.get_color())
|
new_decimal.highlight(decimal.get_color())
|
||||||
decimal.align_data(new_decimal)
|
|
||||||
families = [
|
decimal.submobjects = new_decimal.submobjects
|
||||||
mob.family_members_with_points()
|
decimal.number = new_number
|
||||||
for mob in decimal, new_decimal
|
|
||||||
]
|
|
||||||
for sm1, sm2 in zip(*families):
|
|
||||||
sm1.interpolate(sm1, sm2, 1)
|
|
||||||
self.mobject.number = new_number
|
|
||||||
|
|
||||||
def update_position(self):
|
def update_position(self):
|
||||||
if self.position_update_func is not None:
|
if self.position_update_func is not None:
|
||||||
|
|
Loading…
Add table
Reference in a new issue