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

Make Sdf_LayerRegistry::FindByIdentifier private #2592

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

nvmkuruc
Copy link
Collaborator

Description of Change(s)

Layer identifiers when multiple contexts are bound are not guaranteed to be unique. As such, FindByIdentifier may not return the intended result. It's only used once externally (in a TF_VERIFY statement). This updates that statement to use Find with an explicitly resolved path and makes FindByIdentifier private.

Simplifying the public API for Sdf_LayerRegistry will help the boost removal effort by scoping what kind of queries the replacement data structure needs to support.

Fixes Issue(s)

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

@jesschimein
Copy link
Contributor

Filed as internal issue #USD-8591

@pixar-oss pixar-oss merged commit 1e30f30 into PixarAnimationStudios:dev Sep 19, 2023
12 of 20 checks passed
@nvmkuruc nvmkuruc deleted the sdflayerfind branch December 29, 2023 03:14
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.

3 participants