mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Fixed name conflict for AnimatedBoundary
This commit is contained in:
parent
7ae67fad09
commit
5337dc5ee4
1 changed files with 4 additions and 2 deletions
|
@ -22,9 +22,11 @@ class AnimatedBoundary(VGroup):
|
||||||
]
|
]
|
||||||
self.add(*self.boundary_copies)
|
self.add(*self.boundary_copies)
|
||||||
self.total_time = 0
|
self.total_time = 0
|
||||||
self.add_updater(lambda m, dt: self.update(dt))
|
self.add_updater(
|
||||||
|
lambda m, dt: self.update_boundary_copies(dt)
|
||||||
|
)
|
||||||
|
|
||||||
def update(self, dt):
|
def update_boundary_copies(self, dt):
|
||||||
# Not actual time, but something which passes at
|
# Not actual time, but something which passes at
|
||||||
# an altered rate to make the implementation below
|
# an altered rate to make the implementation below
|
||||||
# cleaner
|
# cleaner
|
||||||
|
|
Loading…
Add table
Reference in a new issue