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

SdfCreateVariantInLayer is not consistent with UsdVariantSets .AddVariantSet #1552

Closed
jpankalainen opened this issue Jul 6, 2021 · 1 comment

Comments

@jpankalainen
Copy link

Description of Issue

Currently the function SdfCreateVariantInLayer is not consistent with the default behavior of UsdVariantSets.AddVariantSet. The former currently adds the variant set name to the prim spec's list with the add verb, whereas the latter uses prepend by default and does not even have add as an option.

Steps to Reproduce

  1. Create two prims to a stage with only one layer
  2. Call SdfCreateVariantInLayer for a root layer prim spec for the first prim
  3. Fetch the UsdVariantSets for the second prim and call AddVariantSet.
  4. Export the layer as string and compare the results

System Information (OS, Hardware)

Windows 10

Package Versions

21.02

Build Flags

--no-usdview --no-imaging --build-monolithic

@jilliene
Copy link

jilliene commented Jul 7, 2021

Filed as internal issue #USD-6779

This issue was closed.
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

3 participants