Skip to content

Commit

Permalink
Merge pull request #365 from GCChen97/patch-3
Browse files Browse the repository at this point in the history
Fix the FileNotFoundError bug in export.py
  • Loading branch information
araistrick authored Nov 11, 2024
2 parents 1d51693 + 572bfe7 commit 75cb36e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions infinigen/tools/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -956,9 +956,10 @@ def export_curr_scene(
):
continue

export_subfolder = export_folder / obj.name
export_subfolder.mkdir(exist_ok=True)
export_file = export_subfolder / f"{obj.name}.{format}"
obj_name = obj.name.replace('/', '_')
export_subfolder = export_folder / obj_name
export_subfolder.mkdir(exist_ok=True, parents=True)
export_file = export_subfolder / f"{obj_name}.{format}"

logging.info(f"Exporting file to {export_file=}")
obj.hide_viewport = False
Expand Down

0 comments on commit 75cb36e

Please sign in to comment.