Skip to content
New issue

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

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

Already on GitHub? # to your account

[usdShade] GetPrimvarNamesMetadataString - only append non-empty string #2131

Conversation

pmolodo
Copy link
Contributor

@pmolodo pmolodo commented Dec 12, 2022

Description of Change(s)

on some compilers / architectures, if you do:

metadata["primvars] = GetPrimvarNamesMetadataString(...)

...this results in a default / empty string being inserted into metadata["primvars"] BEFORE GetPrimvarNamesMetadataString is called. Therefore, we only insert existing non-empty strings into the list that GetPrimvarNamesMetadataString builds. (And it's a good check in general anyway.)

For more aarch64 related fixes, also see:

Fixes Issue(s)

  • failure of testUsdShadeShaderDef on linux aarch64 using gcc 7.5.

  • I have verified that all unit tests pass with the proposed changes

  • I have submitted a signed Contributor License Agreement

on some compilers / architectures, if you do:

    metadata["primvars] = GetPrimvarNamesMetadataString(...)

...this results in a default / empty string being inserted into
metadata["primvars"] BEFORE GetPrimvarNamesMetadataString is called.
Therefore, we only insert existing non-empty strings into the list that
GetPrimvarNamesMetadataString builds. (And it's a good check in general
anyway.)

This fixes a test failure in testUsdShadeShaderDef on linux aarch64
using gcc 7.5.
@sunyab
Copy link
Contributor

sunyab commented Jan 3, 2023

Filed as internal issue #USD-7830

@pixar-oss pixar-oss merged commit 7fcfc3d into PixarAnimationStudios:dev Jan 27, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants