mirror of
https://github.com/3b1b/manim.git
synced 2025-07-31 22:13:30 +08:00
Add check for null VMobject in shader init
This commit is contained in:
@ -1293,7 +1293,8 @@ class VMobject(Mobject):
|
|||||||
self.stroke_shader_wrapper,
|
self.stroke_shader_wrapper,
|
||||||
]
|
]
|
||||||
for sw in self.shader_wrappers:
|
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():
|
for old, new in rep.shader_code_replacements.items():
|
||||||
sw.replace_code(old, new)
|
sw.replace_code(old, new)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user