Bug fixes after last scene update + some renaming

This commit is contained in:
Grant Sanderson
2016-09-07 13:38:05 -07:00
parent 75aa246570
commit 337991e8d1
9 changed files with 172 additions and 174 deletions

View File

@ -25,6 +25,8 @@ class Mobject(object):
}
def __init__(self, *submobjects, **kwargs):
digest_config(self, kwargs)
if not all(map(lambda m : isinstance(m, Mobject), submobjects)):
raise Exception("All submobjects must be of type Mobject")
self.submobjects = list(submobjects)
self.color = Color(self.color)
if self.name is None:
@ -627,7 +629,11 @@ class Mobject(object):
class Group(Mobject):
#Alternate name to improve readibility in cases where
#the mobject is used primarily for its submobject housing
#functionality.
pass