mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Added print_mobject_family
This commit is contained in:
parent
3175e7a7f3
commit
81b8aff7bd
1 changed files with 7 additions and 0 deletions
|
@ -666,3 +666,10 @@ class DictAsObject(object):
|
|||
# Just to have a less heavyweight name for this extremely common operation
|
||||
def fdiv(a, b):
|
||||
return np.true_divide(a,b)
|
||||
|
||||
# For debugging purposes
|
||||
|
||||
def print_mobject_family(mob, n_tabs = 0):
|
||||
print "\t"*n_tabs, mob, id(mob)
|
||||
for submob in mob.submobjects:
|
||||
print_mobject_family(submob, n_tabs + 1)
|
||||
|
|
Loading…
Add table
Reference in a new issue