Skip to content

Commit

Permalink
metadata to every geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedh committed Dec 4, 2024
1 parent 9a8e969 commit f2f079a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion trimesh/exchange/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions trimesh/resolvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f2f079a

Please sign in to comment.