File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ IECORE_POP_DEFAULT_VISIBILITY
8282#include " tbb/concurrent_hash_map.h"
8383
8484#include < iostream>
85+ #include < mutex>
8586
8687using namespace IECore ;
8788using namespace IECoreScene ;
Original file line number Diff line number Diff line change @@ -2482,7 +2482,7 @@ def assertAttributesValues( sphere ):
24822482
24832483 # Check that the USD file written looks as expected
24842484 stage = pxr .Usd .Stage .Open ( fileName )
2485- sphereUsd = pxr .UsdGeom .Imageable ( stage .GetPrimAtPath ( "/sphere" ) )
2485+ sphereUsd = pxr .UsdGeom .PrimvarsAPI ( stage .GetPrimAtPath ( "/sphere" ) )
24862486 self .assertEqual ( sphereUsd .GetPrim ().GetAttribute ( "customNamespaced:testAnimated" ).Get ( 0 ), 0 )
24872487 self .assertEqual ( sphereUsd .GetPrimvar ( "test" ).Get ( 0 ), "cyan" )
24882488 self .assertEqual ( sphereUsd .GetPrimvar ( "user:bongo" ).Get ( 0 ), "cyan" )
@@ -2491,7 +2491,7 @@ def assertAttributesValues( sphere ):
24912491 self .assertEqual ( sphereUsd .GetPrim ().GetAttribute ( "radius" ).Get ( 0 ), 10 )
24922492 self .assertEqual ( sphereUsd .GetPrim ().GetAttribute ( "studio:foo" ).Get ( 0 ), "brown" )
24932493
2494- abUsd = pxr .UsdGeom .Imageable ( stage .GetPrimAtPath ( "/ab" ) )
2494+ abUsd = pxr .UsdGeom .PrimvarsAPI ( stage .GetPrimAtPath ( "/ab" ) )
24952495 self .assertEqual ( abUsd .GetPrimvar ( "bar" ).Get ( 0 ), "black" )
24962496 self .assertEqual ( abUsd .GetPrimvar ( "bar" ).GetAttr ().GetMetadata ( "cortex_isConstantPrimitiveVariable" ), True )
24972497 self .assertEqual ( abUsd .GetPrimvar ( "notUserPrefixAttribute" ).Get ( 0 ), "orange" )
You can’t perform that action at this time.
0 commit comments