mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Merge pull request #2036 from LinZezh1/fix_animation
Remove duplicate items
This commit is contained in:
commit
b6e5b0f34a
1 changed files with 3 additions and 1 deletions
|
@ -117,10 +117,12 @@ class Animation(object):
|
||||||
# The surrounding scene typically handles
|
# The surrounding scene typically handles
|
||||||
# updating of self.mobject. Besides, in
|
# updating of self.mobject. Besides, in
|
||||||
# most cases its updating is suspended anyway
|
# most cases its updating is suspended anyway
|
||||||
return list(filter(
|
items = list(filter(
|
||||||
lambda m: m is not self.mobject,
|
lambda m: m is not self.mobject,
|
||||||
self.get_all_mobjects()
|
self.get_all_mobjects()
|
||||||
))
|
))
|
||||||
|
items = list(set(items))
|
||||||
|
return items
|
||||||
|
|
||||||
def copy(self):
|
def copy(self):
|
||||||
return deepcopy(self)
|
return deepcopy(self)
|
||||||
|
|
Loading…
Add table
Reference in a new issue