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