Skip to content

Commit 772ea79

Browse files
committed
Add check for null VMobject in shader init
1 parent ee08c55 commit 772ea79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

manimlib/mobject/types/vectorized_mobject.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,8 @@ def init_shader_data(self, ctx: Context):
12931293
self.stroke_shader_wrapper,
12941294
]
12951295
for sw in self.shader_wrappers:
1296-
rep = self.family_members_with_points()[0]
1296+
family = self.family_members_with_points()
1297+
rep = family[0] if family else self
12971298
for old, new in rep.shader_code_replacements.items():
12981299
sw.replace_code(old, new)
12991300

0 commit comments

Comments
 (0)