mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Add check for null VMobject in shader init
This commit is contained in:
parent
ee08c552bf
commit
772ea792d0
1 changed files with 2 additions and 1 deletions
|
@ -1293,7 +1293,8 @@ class VMobject(Mobject):
|
|||
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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue