Fix import bug where truncated material names cause import failure

This commit is contained in:
Dion Moult
2020-07-16 11:11:47 +10:00
parent 2a6b3b981a
commit e3de339ab2
@@ -113,6 +113,8 @@ class MaterialCreator():
continue
elif 'surface-style-' in material:
material = material.split('-')[2]
if len(material) > 63: # Blender material names are up to 63 characters
material = material[0:63]
material_to_slot[i] = slots.index(material)
if len(mesh.polygons) == len(mesh['ios_material_ids']):