Skip to content

EMSUSD-3774 - Investigate shader node metadata difference causing test failure - #4647

Merged
seando-adsk merged 1 commit into
devfrom
donnels/EMSUSD-3774/fix_failing_testShaderNodeDef
Jun 12, 2026
Merged

EMSUSD-3774 - Investigate shader node metadata difference causing test failure#4647
seando-adsk merged 1 commit into
devfrom
donnels/EMSUSD-3774/fix_failing_testShaderNodeDef

Conversation

@seando-adsk

Copy link
Copy Markdown
Collaborator

EMSUSD-3774 - Investigate shader node metadata difference causing test failure

  • Starting in OpenUSD 26.03, Pixar added strongly typed metadata via SdrShaderPropertyMetadata. For __SDR__defaultinput, the registered type is bool, not string: {SdrPropertyMetadata->DefaultInput, _LegacyStringToBool}

…t failure

* Starting in OpenUSD 26.03, Pixar added strongly typed metadata via SdrShaderPropertyMetadata.
  For __SDR__defaultinput, the registered type is bool, not string:
  {SdrPropertyMetadata->DefaultInput, _LegacyStringToBool}
@seando-adsk seando-adsk added the unit test Related to unit tests (both python or c++) label Jun 12, 2026
@seando-adsk seando-adsk self-assigned this Jun 12, 2026
@seando-adsk
seando-adsk requested a review from frohnej-adsk June 12, 2026 14:24
Comment on lines +196 to +199
# Starting in OpenUSD 26.03, Pixar added strongly typed metadata via SdrShaderPropertyMetadata.
# For __SDR__defaultinput, the registered type is bool, not string:
# {SdrPropertyMetadata->DefaultInput, _LegacyStringToBool}
# Thus: "in1" is not "0" / "false" / "f", so it becomes true.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the explanation! I'm still very confused why USD makes it a boolean. I wonder if it's intentional or a bug in USD...

Either way, if we notice any issues being caused by this, we can come back and see if there is a way to access the raw string. But perhaps the defaultinput metadata isn't even used.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason is line 117 which was added in this commit. That commit said to convert this metadata "DefaultInput" from a legacy string to a boolean.

@seando-adsk seando-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Jun 12, 2026
@seando-adsk
seando-adsk merged commit f51ff88 into dev Jun 12, 2026
11 checks passed
@seando-adsk
seando-adsk deleted the donnels/EMSUSD-3774/fix_failing_testShaderNodeDef branch June 12, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-merge Development process is finished, PR is ready for merge unit test Related to unit tests (both python or c++)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants