File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,7 +52,8 @@ struct PointInstancer::InstanceAttributePredicate
5252 return
5353 (
5454 value.second .interpolation == PrimitiveVariable::Vertex ||
55- value.second .interpolation == PrimitiveVariable::Varying
55+ value.second .interpolation == PrimitiveVariable::Varying ||
56+ value.second .interpolation == PrimitiveVariable::FaceVarying
5657 ) &&
5758 value.first != " prototypeRoots" &&
5859 value.first != " prototypeIndex" &&
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ def testVaryingAndFaceVaryingPrimitiveVariables( self ) :
7979 instancer .setOrientation ( IECore .QuatfVectorData ( [ imath .Quatf () ] ) )
8080 instancer .setPrototypeIndex ( IECore .IntVectorData ( [ 0 ] ) )
8181 instancer .setID ( IECore .Int64VectorData ( [ 10 ] ) )
82+ instancer ["custom" ] = IECoreScene .PrimitiveVariable ( IECoreScene .PrimitiveVariable .Interpolation .Vertex , IECore .IntVectorData ( [ 1 ] ) )
8283
8384 for interpolation in ( IECoreScene .PrimitiveVariable .Interpolation .Varying , IECoreScene .PrimitiveVariable .Interpolation .FaceVarying ) :
8485
@@ -95,6 +96,7 @@ def testVaryingAndFaceVaryingPrimitiveVariables( self ) :
9596 self .assertEqual ( list ( instancer2 .getOrientation () ), list ( instancer .getOrientation () ) )
9697 self .assertEqual ( list ( instancer2 .getPrototypeIndex () ), list ( instancer .getPrototypeIndex () ) )
9798 self .assertEqual ( list ( instancer2 .getID () ), list ( instancer .getID () ) )
99+ self .assertEqual ( instancer2 .instanceAttributes ().keys (), instancer .instanceAttributes ().keys () )
98100
99101 def testVisibilityQuery ( self ) :
100102
You can’t perform that action at this time.
0 commit comments