I generated a .gltf file using another tool. When processing it with gltf-to-3d-tiles, I found that self.scene = None in Slicer.__init__().
This is easily fixed by setting self.scene = 0 to make the tool resilient, though it is probably an error in the previous tool that I used that caused no scene to be set in that resulting data.
A high-level error message could be preferable to this:
File "...\gltf-to-3d-tiles\gltf\slicer.py", line 24, in __init__
root = self.scenes[self.scene].nodes[0]
TypeError: list indices must be integers or slices, not **NoneType**
I generated a
.gltf
file using another tool. When processing it withgltf-to-3d-tiles
, I found thatself.scene = None
inSlicer.__init__()
.This is easily fixed by setting
self.scene = 0
to make the tool resilient, though it is probably an error in the previous tool that I used that caused no scene to be set in that resulting data.A high-level error message could be preferable to this: