diff --git a/lib/usd/translators/shading/usdUVTextureReader.cpp b/lib/usd/translators/shading/usdUVTextureReader.cpp index 7386c85415..d1c4d8ef32 100644 --- a/lib/usd/translators/shading/usdUVTextureReader.cpp +++ b/lib/usd/translators/shading/usdUVTextureReader.cpp @@ -266,7 +266,12 @@ bool PxrMayaUsdUVTexture_Reader::Read(UsdMayaPrimReaderContext* context) && !filePath.empty() && ArIsPackageRelativePath(filePath)) { // NOTE: (yliangsiew) Package-relatve path means that we are inside of a USDZ file. ArResolver& arResolver = ArGetResolver(); // NOTE: (yliangsiew) This is cached. +#if PXR_VERSION > 2011 + std::shared_ptr assetPtr = arResolver.OpenAsset(ArResolvedPath(filePath)); +#else std::shared_ptr assetPtr = arResolver.OpenAsset(filePath); +#endif + if (assetPtr == nullptr) { TF_WARN( "The file: %s could not be found within the USDZ archive for extraction.",