Skip to content

Commit

Permalink
Using UsdShade.Input.IsInput to verify that the value producing attr …
Browse files Browse the repository at this point in the history
…is an input value.
  • Loading branch information
sirpalee committed Jan 10, 2024
1 parent 188fb42 commit 82b4765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pxr/usd/usdUtils/complianceChecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ def _GetInputValue(self, shader, inputName):
if not valueProducingAttrs or len(valueProducingAttrs) != 1:
return None
# We require an input parameter producing the value.
if not UsdShade.Tokens.inputs.startswith(valueProducingAttrs[0].GetNamespace()):
if not UsdShade.Input.IsInput(valueProducingAttrs[0]):
return None
return valueProducingAttrs[0].Get(Usd.TimeCode.EarliestTime())

Expand Down

0 comments on commit 82b4765

Please sign in to comment.