mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Update parents of new_mob in Mobject.replace
This commit is contained in:
parent
3b4a233bb1
commit
5d87f3f954
1 changed files with 1 additions and 0 deletions
|
@ -394,6 +394,7 @@ class Mobject(object):
|
|||
if self in old_submob.parents:
|
||||
old_submob.parents.remove(self)
|
||||
self.submobjects[index] = new_submob
|
||||
new_submob.parents.append(self)
|
||||
self.assemble_family()
|
||||
return self
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue