Skip to content

Commit

Permalink
Add check for null VMobject in shader init
Browse files Browse the repository at this point in the history
  • Loading branch information
3b1b committed Feb 3, 2023
1 parent ee08c55 commit 772ea79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manimlib/mobject/types/vectorized_mobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,8 @@ def init_shader_data(self, ctx: Context):
self.stroke_shader_wrapper,
]
for sw in self.shader_wrappers:
rep = self.family_members_with_points()[0]
family = self.family_members_with_points()
rep = family[0] if family else self
for old, new in rep.shader_code_replacements.items():
sw.replace_code(old, new)

Expand Down

0 comments on commit 772ea79

Please sign in to comment.