Skip to content

Commit

Permalink
Merge pull request ImageEngine#1231 from johnhaddon/usdFix
Browse files Browse the repository at this point in the history
USDScene : Fix compatibility with USD 21.08
  • Loading branch information
johnhaddon authored Feb 4, 2022
2 parents b4786f2 + 2288e18 commit 8882ea1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion contrib/IECoreUSD/src/IECoreUSD/USDScene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ using namespace IECoreUSD;
#define HasAuthoredValue HasAuthoredValueOpinion
#endif

#if USD_VERSION < 2011
#define GetPrimInPrototype GetPrimInMaster
#endif

namespace
{

Expand All @@ -104,7 +108,7 @@ void appendPrimOrMasterPath( const pxr::UsdPrim &prim, IECore::MurmurHash &h )
{
if( prim.IsInstanceProxy() )
{
append( prim.GetPrimInMaster().GetPrimPath(), h );
append( prim.GetPrimInPrototype().GetPrimPath(), h );
}
else
{
Expand Down

0 comments on commit 8882ea1

Please sign in to comment.