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 eb516c9 commit 08bfe0fCopy full SHA for 08bfe0f
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] if primitive.material else None,
+ material=materials[primitive.material] if primitive.material is not None else None,
407
bbox_min=bbox_min, bbox_max=bbox_max,
408
))
409
0 commit comments