mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Fix 3D overlap when animating by checking Mobject family members recursively instead of self.mobjects
(#2254)
* Add Animation.setup_scene method to make Animation more customizable * Remove Animation.setup_scene method and let scene check all mobject family members
This commit is contained in:
parent
6196daa5ec
commit
df1e067480
1 changed files with 1 additions and 1 deletions
|
@ -623,7 +623,7 @@ class Scene(object):
|
|||
# animated mobjects that are in the family of
|
||||
# those on screen, this can result in a restructuring
|
||||
# of the scene.mobjects list, which is usually desired.
|
||||
if animation.mobject not in self.mobjects:
|
||||
if animation.mobject not in self.get_mobject_family_members():
|
||||
self.add(animation.mobject)
|
||||
|
||||
def progress_through_animations(self, animations: Iterable[Animation]) -> None:
|
||||
|
|
Loading…
Add table
Reference in a new issue