diff --git a/read_ascii_xps.py b/read_ascii_xps.py index 12bcfb4..b17b344 100644 --- a/read_ascii_xps.py +++ b/read_ascii_xps.py @@ -117,6 +117,9 @@ def readMeshes(file, hasBones): # print('Texture file', textureFile) uvLayerId = ascii_ops.readInt(file) + if not textureFile: + continue + xpsTexture = xps_types.XpsTexture(texId, textureFile, uvLayerId) textures.append(xpsTexture)