mirror of
https://github.com/3b1b/manim.git
synced 2025-07-31 22:13:30 +08:00
fix get_subpath_mobjects() when a submobject has no attribute 'is_subpath'
This commit is contained in:
@ -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
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user