Index: release/scripts/export_obj.py =================================================================== --- release/scripts/export_obj.py (revision 18737) +++ release/scripts/export_obj.py (working copy) @@ -120,7 +120,7 @@ if img: # We have an image on the face! file.write('map_Kd %s\n' % img.filename.split('\\')[-1].split('/')[-1]) # Diffuse mapping image - elif not mat: # No face image. if we havea material search for MTex image. + elif mat: # No face image. if we have a material search for MTex image. for mtex in mat.getTextures(): if mtex and mtex.tex.type == Blender.Texture.Types.IMAGE: try: Index: release/scripts/import_obj.py =================================================================== --- release/scripts/import_obj.py (revision 18737) +++ release/scripts/import_obj.py (working copy) @@ -424,7 +424,7 @@ sharp_edges[key]= None - # mat the material names to an index + # map the material names to an index material_mapping= dict([(name, i) for i, name in enumerate(unique_materials.keys())]) materials= [None] * len(unique_materials)