Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usdzip duplicates files when the root layer references usdz files #2134

Closed
dgovil opened this issue Dec 15, 2022 · 2 comments
Closed

usdzip duplicates files when the root layer references usdz files #2134

dgovil opened this issue Dec 15, 2022 · 2 comments

Comments

@dgovil
Copy link
Collaborator

dgovil commented Dec 15, 2022

Description of Issue

When using usdzip on a file that references USDZ files, they get duplicated within the resulting usdz file.

An example of the file is here. The attached zip has this plus the usdz files.

The resulting file should be ~29.5MB , but ends up being 59MB due to the duplicated contents.

Steps to Reproduce

  1. usdzip combined.usdz -a ./combined.usda
#usda 1.0
(
    metersPerUnit = 0.01
    upAxis = "Y"
)

over "guitar" (
    prepend references = @./fender_stratocaster.usdz@
)
{
}


over "gramophone" (
    prepend references = @./gramophone.usdz@
)
{
}
  1. usdzip --list combined.usdz
usdzip --list /Users/dhruvgovil/Downloads/combined.usdz
combined.usda
fender_stratocaster.usdz
gramophone.usdz
0/fender_stratocaster.usdz
0/gramophone.usdz

System Information (OS, Hardware)

macOS 13.1 / Intel+M1 macs (repro on both)

Package Versions

USD 22.8 and 22.11

Archive 2.zip

@dgovil
Copy link
Collaborator Author

dgovil commented Dec 16, 2022

This is quite odd, if you do this, you don’t get the duplicates

#usda 1.0
(
    subLayers = [
        @gramophone.usdz@,
    ]
)

But if you do this you do get the file twice

#usda 1.0
(
    subLayers = [
        @./gramophone.usdz@,
    ]
)

@sunyab
Copy link
Contributor

sunyab commented Jan 3, 2023

Filed as internal issue #USD-7833

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants