Skip to content

Commit 7c1359a

Browse files
committed
Allow loading gltf mesh without material
1 parent b27590f commit 7c1359a

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],
406+
material=materials[primitive.material] if primitive.material else None,
407407
bbox_min=bbox_min, bbox_max=bbox_max,
408408
))
409409

0 commit comments

Comments
 (0)