Skip to content

Commit

Permalink
Merge pull request #2519 from erikaharrison-adsk/adsk/bugfix/ResolveP…
Browse files Browse the repository at this point in the history
…arameter

Autodesk: Fix issue where ResolveParameter doesn't support type conversion

(Internal change: 2324659)
  • Loading branch information
pixar-oss committed Apr 19, 2024
2 parents c462eb8 + 49237aa commit 4cb0cb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pxr/imaging/hd/material.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ _ResolveParameter(
if (sdrNode) {
if (const SdrShaderPropertyConstPtr input =
sdrNode->GetShaderInput(name)) {
const VtValue& value = input->GetDefaultValue();
const VtValue& value = input->GetDefaultValueAsSdfType();
if (value.IsHolding<T>()) {
return value.UncheckedGet<T>();
}
Expand Down

0 comments on commit 4cb0cb1

Please sign in to comment.