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

Report the path of the invalid spec (not the inducing spec) in SdfCopySpec #2440

Merged
merged 1 commit into from
Jul 3, 2023

Conversation

nvmkuruc
Copy link
Collaborator

@nvmkuruc nvmkuruc commented May 18, 2023

Description of Change(s)

SdfCopySpec iterates over child specs when copying. If any of those specs is invalid (GetSpecType() == SdfSpecTypeUnknown), a coding error is reported. However, the error message reports the path to the inducing spec (the source path argument to SdfCopySpec) as invalid when a child is invalid.

This PR fixes the error message so that the right spec is reported as being invalid.

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 changed the title Report the path of the invalid spec (not the inducing spec) during copy Report the path of the invalid spec (not the inducing spec) in SdfCopySpec May 18, 2023
@sunyab
Copy link
Contributor

sunyab commented May 23, 2023

Filed as internal issue #USD-8354

@pixar-oss pixar-oss merged commit 7b1ddc7 into PixarAnimationStudios:dev Jul 3, 2023
pixar-oss added a commit that referenced this pull request Jul 3, 2023
Report the path of the invalid spec (not the inducing spec) in `SdfCopySpec`

(Internal change: 2282874)
@nvmkuruc nvmkuruc deleted the copy_path_fix branch July 15, 2023 21:49
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