diff --git a/trimesh/exchange/load.py b/trimesh/exchange/load.py index 5582f4d6e..ed68ceef3 100644 --- a/trimesh/exchange/load.py +++ b/trimesh/exchange/load.py @@ -211,8 +211,10 @@ def load_scene( if not isinstance(loaded, Scene): loaded = Scene(loaded) - # add any file path metadata + # add the "file_path" information to the overall scene metadata loaded.metadata.update(arg.metadata) + # add the load path metadata to every geometry + [g.metadata.update(arg.metadata) for g in loaded.geometry.values()] return loaded diff --git a/trimesh/resolvers.py b/trimesh/resolvers.py index b321b0461..226ae3500 100644 --- a/trimesh/resolvers.py +++ b/trimesh/resolvers.py @@ -321,7 +321,6 @@ def __init__(self, url: str): # parse string into namedtuple parsed = urlparse(url) - # we want a base url split = [i for i in parsed.path.split("/") if len(i) > 0] @@ -485,7 +484,6 @@ def write(self, name, data): @property def zipped(self) -> ZipResolver: """ - - opened zip file - locally saved zip file - retrieve zip file and saved