Skip to content

Commit 08bfe0f

Browse files
committed
gltf material explicit None check
1 parent eb516c9 commit 08bfe0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demosys/scene/loaders/gltf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def load(self, materials):
403403
bbox_min, bbox_max = self.get_bbox(primitive)
404404
meshes.append(Mesh(
405405
self.name, vao=vao, attributes=attributes,
406-
material=materials[primitive.material] if primitive.material else None,
406+
material=materials[primitive.material] if primitive.material is not None else None,
407407
bbox_min=bbox_min, bbox_max=bbox_max,
408408
))
409409

0 commit comments

Comments
 (0)