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

Support namespaces in propertyNamespacePrefix for usdGenSchema #3090

Merged

Conversation

nvmkuruc
Copy link
Collaborator

Description of Change(s)

The current implementation of usdGenSchema assumes that propertyNamespacePrefix used in multiple apply schemas is a valid identifier and it can be used as a token name directly. This prevents property namespaces from containing the otherwise valid :.

This PR changes propertyNamespacePrefix to be a dataclass that stores both the prefix value a valid token name that can be threaded through the schema generation process.

With this change, a library's public static tokens can be used directly and there's no need for the private _schemaTokens internal to the class anymore.

Fixes Issue(s)

  • I have verified that all unit tests pass with the proposed changes
  • I have submitted a signed Contributor License Agreement

@nvmkuruc nvmkuruc force-pushed the fixmultiapplynamespace branch 3 times, most recently from 9c67fdf to 4308221 Compare May 17, 2024 21:19
@jesschimein
Copy link
Contributor

Filed as internal issue #USD-9691

@jesschimein
Copy link
Contributor

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@pixar-oss pixar-oss merged commit e2bc9cb into PixarAnimationStudios:dev Jun 4, 2024
3 of 5 checks passed
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

Successfully merging this pull request may close these issues.

4 participants