mirror of
https://github.com/3b1b/manim.git
synced 2025-08-03 04:04:36 +08:00
Remove duplicate items
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user