diff --git a/trimesh/exchange/obj.py b/trimesh/exchange/obj.py index 841d183ce..7df865358 100644 --- a/trimesh/exchange/obj.py +++ b/trimesh/exchange/obj.py @@ -338,6 +338,8 @@ def parse_mtl(mtl, resolver=None): # load the bytes into a PIL image # an image file name material["image"] = Image.open(util.wrap_as_stream(file_data)) + # also store the original map_kd file name + material[key] = file_name except BaseException: log.debug("failed to load image", exc_info=True)