diff --git a/lib/adskHydraSceneBrowser/test/adskHydraSceneBrowserTestFixture.cpp b/lib/adskHydraSceneBrowser/test/adskHydraSceneBrowserTestFixture.cpp index bada54c2c..49edf859e 100644 --- a/lib/adskHydraSceneBrowser/test/adskHydraSceneBrowserTestFixture.cpp +++ b/lib/adskHydraSceneBrowser/test/adskHydraSceneBrowserTestFixture.cpp @@ -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()) { // Special case for SdfPathVector. pxr::SdfPathVector paths = value.Get(); @@ -267,6 +270,7 @@ void AdskHydraSceneBrowserTestFixture::CompareValueContent(const pxr::VtValue& v else { valueStream << value; } +#endif std::string expectedValue = valueStream.str(); if (!MatchesFallbackTextOutput(expectedValue)) {