mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Add Mobject.reverse_submobjects
This commit is contained in:
parent
83393abb22
commit
b6dd640fe7
1 changed files with 5 additions and 0 deletions
|
@ -520,6 +520,11 @@ class Mobject(object):
|
||||||
self.assemble_family()
|
self.assemble_family()
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
def reverse_submobjects(self):
|
||||||
|
self.submobjects.reverse()
|
||||||
|
self.assemble_family()
|
||||||
|
return self
|
||||||
|
|
||||||
# Copying and serialization
|
# Copying and serialization
|
||||||
|
|
||||||
def stash_mobject_pointers(func):
|
def stash_mobject_pointers(func):
|
||||||
|
|
Loading…
Add table
Reference in a new issue