Bug fixes to new VMobject color model

This commit is contained in:
Grant Sanderson
2018-08-11 16:53:37 -07:00
parent 0a423f7736
commit 5b9afe6e86
3 changed files with 65 additions and 51 deletions

View File

@ -127,6 +127,8 @@ class Mobject(Container):
for attr, value in list(self.__dict__.items()):
if isinstance(value, Mobject) and value in family and value is not self:
setattr(copy_mobject, attr, value.copy())
if isinstance(value, np.ndarray):
setattr(copy_mobject, attr, np.array(value))
return copy_mobject
def deepcopy(self):