We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b27590f commit 7c1359aCopy full SHA for 7c1359a
demosys/scene/loaders/gltf.py
@@ -403,7 +403,7 @@ def load(self, materials):
403
bbox_min, bbox_max = self.get_bbox(primitive)
404
meshes.append(Mesh(
405
self.name, vao=vao, attributes=attributes,
406
- material=materials[primitive.material],
+ material=materials[primitive.material] if primitive.material else None,
407
bbox_min=bbox_min, bbox_max=bbox_max,
408
))
409
0 commit comments