fix get_subpath_mobjects() when a submobject has no attribute 'is_subpath'

This commit is contained in:
Mirek Olšák
2017-03-17 19:56:17 +01:00
parent dc24f0eaf4
commit 0f458594c6

View File

@ -215,7 +215,7 @@ class VMobject(Mobject):
def get_subpath_mobjects(self):
return filter(
lambda m : m.is_subpath,
lambda m : hasattr(m, 'is_subpath') and m.is_subpath,
self.submobjects
)