Skip to content

Commit

Permalink
fix the build failure on old USD version for Maya 2025
Browse files Browse the repository at this point in the history
  • Loading branch information
lilike-adsk committed Oct 2, 2024
1 parent c375deb commit 42dc7ed
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,9 @@ void AdskHydraSceneBrowserTestFixture::CompareValueContent(const pxr::VtValue& v
std::string actualValue = valueText.toStdString();

std::ostringstream valueStream;
#if PXR_VERSION < 2408
valueStream << value;
#else
if (value.IsHolding<pxr::SdfPathVector>()) {
// Special case for SdfPathVector.
pxr::SdfPathVector paths = value.Get<pxr::SdfPathVector>();
Expand All @@ -267,6 +270,7 @@ void AdskHydraSceneBrowserTestFixture::CompareValueContent(const pxr::VtValue& v
else {
valueStream << value;
}
#endif
std::string expectedValue = valueStream.str();

if (!MatchesFallbackTextOutput(expectedValue)) {
Expand Down

0 comments on commit 42dc7ed

Please sign in to comment.