Skip to content

Commit 1aa7979

Browse files
committed
IECoreMaya : ParameterisedHolder Test
Update test to exclude checking normals are equal since now we rely on normals being computed by Maya which createBox does not do
1 parent b8fdefb commit 1aa7979

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/IECoreMaya/ParameterisedHolder.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ def testMeshParameterIOProblem( self ) :
286286
op = fnOP.getOp()
287287

288288
mesh = IECoreScene.MeshPrimitive.createBox( imath.Box3f( imath.V3f( -2, -2, -2 ), imath.V3f( 2, 3, 4 ) ) )
289-
mesh[ "N" ] = IECoreScene.PrimitiveVariable( mesh[ "N" ].interpolation, mesh[ "N" ].expandedData() )
290289
op.parameters()[ "input" ].setValue( mesh )
291290
fnOP.setNodeValues()
292291

@@ -301,7 +300,13 @@ def testMeshParameterIOProblem( self ) :
301300
op = fnOP.getOp()
302301

303302
mesh2 = op.parameters()["input"].getValue()
303+
304304
self.assertTrue( mesh2.arePrimitiveVariablesValid() )
305+
# The ToMayaMeshConverter relies on Maya to calculate the normals
306+
# whereas createBox uses indexed normals so we cannot include them
307+
# in the comparison otherwise they will never be the same
308+
del mesh[ "N" ]
309+
del mesh2[ "N" ]
305310
self.assertEqual( mesh2, mesh )
306311

307312
def testOpHolder( self ) :

0 commit comments

Comments
 (0)