Skip to content

Commit

Permalink
fixed error caused by no image for tileset conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
jason xu committed Mar 4, 2022
1 parent 895d129 commit ee0d11a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gltf/slicer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ def __init__(self, gltf, **kwargs):
self.__extras = [[] for _ in range(len(self.meshes))]
root = self.scenes[self.scene].nodes[0]
self.__parse_node(root)
if not self.images:
return

for image in self.images:
image.uri = image.uri.replace("\\", "/")

Expand Down

0 comments on commit ee0d11a

Please sign in to comment.